Invites
Create an invite
Sends an invite email to the given address. Required: email.
The role field sets the invitee’s workspace role (default: MEMBER). Note that
OWNER cannot be assigned via invite.
The teamRole and teamIds fields control which teams the invitee is added to
upon acceptance.
Requires ADMIN or OWNER workspace role.
POST
/
invites
Create an invite
curl --request POST \
--url https://slog.ai/invites \
--header 'Content-Type: application/json' \
--header 'slog-api-key: <api-key>' \
--data '
{
"email": "[email protected]",
"role": "MEMBER",
"teamRole": "MEMBER",
"teamIds": [
"team_01jqteam0001"
]
}
'import requests
url = "https://slog.ai/invites"
payload = {
"email": "[email protected]",
"role": "MEMBER",
"teamRole": "MEMBER",
"teamIds": ["team_01jqteam0001"]
}
headers = {
"slog-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'slog-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '[email protected]',
role: 'MEMBER',
teamRole: 'MEMBER',
teamIds: ['team_01jqteam0001']
})
};
fetch('https://slog.ai/invites', 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/invites",
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([
'email' => '[email protected]',
'role' => 'MEMBER',
'teamRole' => 'MEMBER',
'teamIds' => [
'team_01jqteam0001'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"slog-api-key: <api-key>"
],
]);
$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/invites"
payload := strings.NewReader("{\n \"email\": \"[email protected]\",\n \"role\": \"MEMBER\",\n \"teamRole\": \"MEMBER\",\n \"teamIds\": [\n \"team_01jqteam0001\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("slog-api-key", "<api-key>")
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/invites")
.header("slog-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"[email protected]\",\n \"role\": \"MEMBER\",\n \"teamRole\": \"MEMBER\",\n \"teamIds\": [\n \"team_01jqteam0001\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://slog.ai/invites")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["slog-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"[email protected]\",\n \"role\": \"MEMBER\",\n \"teamRole\": \"MEMBER\",\n \"teamIds\": [\n \"team_01jqteam0001\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"invite": {
"id": "inv_01jqinvite001",
"email": "[email protected]",
"teamIds": [
"team_01jqteam0001"
],
"createdAt": "2026-05-15T10:00:00.000Z",
"invitedBy": {
"id": "user_01jquser0001",
"name": "Alex Johnson",
"email": "[email protected]",
"avatarUrl": null,
"humanId": null
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Requires ADMIN or OWNER role"
}
}{
"errors": {
"email": [
"The email field must be a valid email address"
],
"code": [
"The code field must be exactly 6 characters long"
]
}
}Authorizations
ApiKeyBearerToken
API key obtained from the Slog dashboard or returned by the signup/invite-redeem
flows. Pass as the slog-api-key header.
Body
application/json
Example:
Workspace role for the invitee. Defaults to MEMBER. Cannot be OWNER.
Available options:
MEMBER, ADMIN Example:
"MEMBER"
Role of a user within a team.
Available options:
VIEWER, MEMBER, ADMIN, OWNER Teams to add the invitee to upon acceptance.
Example:
["team_01jqteam0001"]
Response
Invite created and email sent.
Show child attributes
Show child attributes
⌘I
Create an invite
curl --request POST \
--url https://slog.ai/invites \
--header 'Content-Type: application/json' \
--header 'slog-api-key: <api-key>' \
--data '
{
"email": "[email protected]",
"role": "MEMBER",
"teamRole": "MEMBER",
"teamIds": [
"team_01jqteam0001"
]
}
'import requests
url = "https://slog.ai/invites"
payload = {
"email": "[email protected]",
"role": "MEMBER",
"teamRole": "MEMBER",
"teamIds": ["team_01jqteam0001"]
}
headers = {
"slog-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'slog-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
email: '[email protected]',
role: 'MEMBER',
teamRole: 'MEMBER',
teamIds: ['team_01jqteam0001']
})
};
fetch('https://slog.ai/invites', 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/invites",
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([
'email' => '[email protected]',
'role' => 'MEMBER',
'teamRole' => 'MEMBER',
'teamIds' => [
'team_01jqteam0001'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"slog-api-key: <api-key>"
],
]);
$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/invites"
payload := strings.NewReader("{\n \"email\": \"[email protected]\",\n \"role\": \"MEMBER\",\n \"teamRole\": \"MEMBER\",\n \"teamIds\": [\n \"team_01jqteam0001\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("slog-api-key", "<api-key>")
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/invites")
.header("slog-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"[email protected]\",\n \"role\": \"MEMBER\",\n \"teamRole\": \"MEMBER\",\n \"teamIds\": [\n \"team_01jqteam0001\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://slog.ai/invites")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["slog-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"[email protected]\",\n \"role\": \"MEMBER\",\n \"teamRole\": \"MEMBER\",\n \"teamIds\": [\n \"team_01jqteam0001\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"invite": {
"id": "inv_01jqinvite001",
"email": "[email protected]",
"teamIds": [
"team_01jqteam0001"
],
"createdAt": "2026-05-15T10:00:00.000Z",
"invitedBy": {
"id": "user_01jquser0001",
"name": "Alex Johnson",
"email": "[email protected]",
"avatarUrl": null,
"humanId": null
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required"
}
}{
"error": {
"code": "FORBIDDEN",
"message": "Requires ADMIN or OWNER role"
}
}{
"errors": {
"email": [
"The email field must be a valid email address"
],
"code": [
"The code field must be exactly 6 characters long"
]
}
}