Authentication
Complete email sign-up
Verifies the OTP and creates the user account and initial workspace. Returns an API token that can be used immediately.
POST
/
signup
/
complete
Complete email sign-up
curl --request POST \
--url https://slog.ai/signup/complete \
--header 'Content-Type: application/json' \
--data '
{
"signup_token": "tok_01jqsignup1234abcd",
"code": "482910",
"name": "Alex Johnson",
"workspace_name": "Acme Engineering"
}
'import requests
url = "https://slog.ai/signup/complete"
payload = {
"signup_token": "tok_01jqsignup1234abcd",
"code": "482910",
"name": "Alex Johnson",
"workspace_name": "Acme Engineering"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
signup_token: 'tok_01jqsignup1234abcd',
code: '482910',
name: 'Alex Johnson',
workspace_name: 'Acme Engineering'
})
};
fetch('https://slog.ai/signup/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://slog.ai/signup/complete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'signup_token' => 'tok_01jqsignup1234abcd',
'code' => '482910',
'name' => 'Alex Johnson',
'workspace_name' => 'Acme Engineering'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://slog.ai/signup/complete"
payload := strings.NewReader("{\n \"signup_token\": \"tok_01jqsignup1234abcd\",\n \"code\": \"482910\",\n \"name\": \"Alex Johnson\",\n \"workspace_name\": \"Acme Engineering\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://slog.ai/signup/complete")
.header("Content-Type", "application/json")
.body("{\n \"signup_token\": \"tok_01jqsignup1234abcd\",\n \"code\": \"482910\",\n \"name\": \"Alex Johnson\",\n \"workspace_name\": \"Acme Engineering\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://slog.ai/signup/complete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"signup_token\": \"tok_01jqsignup1234abcd\",\n \"code\": \"482910\",\n \"name\": \"Alex Johnson\",\n \"workspace_name\": \"Acme Engineering\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"api_token": "slog_key_01jqapikey1234abcd",
"workspace_slug": "acme-engineering",
"workspace_name": "Acme Engineering"
}
}{
"errors": {
"email": [
"The email field must be a valid email address"
],
"code": [
"The code field must be exactly 6 characters long"
]
}
}Body
application/json
Token returned by POST /signup/start.
Example:
"tok_01jqsignup1234abcd"
6-digit OTP sent to the email address.
Required string length:
6Example:
"482910"
Display name for the new user.
Minimum string length:
1Example:
"Alex Johnson"
Name for the new workspace.
Minimum string length:
1Example:
"Acme Engineering"
Response
Account created. Use api_token to authenticate subsequent requests.
Show child attributes
Show child attributes
⌘I
Complete email sign-up
curl --request POST \
--url https://slog.ai/signup/complete \
--header 'Content-Type: application/json' \
--data '
{
"signup_token": "tok_01jqsignup1234abcd",
"code": "482910",
"name": "Alex Johnson",
"workspace_name": "Acme Engineering"
}
'import requests
url = "https://slog.ai/signup/complete"
payload = {
"signup_token": "tok_01jqsignup1234abcd",
"code": "482910",
"name": "Alex Johnson",
"workspace_name": "Acme Engineering"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
signup_token: 'tok_01jqsignup1234abcd',
code: '482910',
name: 'Alex Johnson',
workspace_name: 'Acme Engineering'
})
};
fetch('https://slog.ai/signup/complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://slog.ai/signup/complete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'signup_token' => 'tok_01jqsignup1234abcd',
'code' => '482910',
'name' => 'Alex Johnson',
'workspace_name' => 'Acme Engineering'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://slog.ai/signup/complete"
payload := strings.NewReader("{\n \"signup_token\": \"tok_01jqsignup1234abcd\",\n \"code\": \"482910\",\n \"name\": \"Alex Johnson\",\n \"workspace_name\": \"Acme Engineering\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://slog.ai/signup/complete")
.header("Content-Type", "application/json")
.body("{\n \"signup_token\": \"tok_01jqsignup1234abcd\",\n \"code\": \"482910\",\n \"name\": \"Alex Johnson\",\n \"workspace_name\": \"Acme Engineering\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://slog.ai/signup/complete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"signup_token\": \"tok_01jqsignup1234abcd\",\n \"code\": \"482910\",\n \"name\": \"Alex Johnson\",\n \"workspace_name\": \"Acme Engineering\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"api_token": "slog_key_01jqapikey1234abcd",
"workspace_slug": "acme-engineering",
"workspace_name": "Acme Engineering"
}
}{
"errors": {
"email": [
"The email field must be a valid email address"
],
"code": [
"The code field must be exactly 6 characters long"
]
}
}