curl --request POST \
--url https://app.thinnest.ai/api/v1/invitations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "anjali@sunrisedental.in",
"role": "member"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'anjali@sunrisedental.in', role: 'member'})
};
fetch('https://app.thinnest.ai/api/v1/invitations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/invitations"
payload = {
"email": "anjali@sunrisedental.in",
"role": "member"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "inv_2d3f5a7c-9e1b-4d6f-8a2c-4e6a8c0e2f57",
"email": "anjali@sunrisedental.in",
"role": "member",
"status": "pending",
"expiresAt": "2026-10-20T10:40:00.000Z",
"createdAt": "2026-10-02T08:15:27.610Z"
}{
"id": "inv_2d3f5a7c-9e1b-4d6f-8a2c-4e6a8c0e2f57",
"email": "anjali@sunrisedental.in",
"role": "member",
"status": "pending",
"expiresAt": "2026-10-20T10:40:00.000Z",
"createdAt": "2026-10-06T10:40:00.000Z"
}{
"error": "`email` is required — the address to invite."
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "This workspace includes 5 seats."
}{
"error": "Only an owner can invite another owner."
}{
"error": "They are already in this workspace."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Create Invitation
Invites somebody to the workspace and emails them a link that works for 14 days (the email goes out just after the answer). Inviting an address that already has a pending invitation sends it again with a fresh 14 days and its new role, and answers 200 instead of 201. Every seat counts — the people in the workspace plus pending invitations. Addresses at reserved test domains (example.com, .test, …) get the invitation but no email. Needs a full key.
curl --request POST \
--url https://app.thinnest.ai/api/v1/invitations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "anjali@sunrisedental.in",
"role": "member"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'anjali@sunrisedental.in', role: 'member'})
};
fetch('https://app.thinnest.ai/api/v1/invitations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/invitations"
payload = {
"email": "anjali@sunrisedental.in",
"role": "member"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "inv_2d3f5a7c-9e1b-4d6f-8a2c-4e6a8c0e2f57",
"email": "anjali@sunrisedental.in",
"role": "member",
"status": "pending",
"expiresAt": "2026-10-20T10:40:00.000Z",
"createdAt": "2026-10-02T08:15:27.610Z"
}{
"id": "inv_2d3f5a7c-9e1b-4d6f-8a2c-4e6a8c0e2f57",
"email": "anjali@sunrisedental.in",
"role": "member",
"status": "pending",
"expiresAt": "2026-10-20T10:40:00.000Z",
"createdAt": "2026-10-06T10:40:00.000Z"
}{
"error": "`email` is required — the address to invite."
}{
"error": "Send a valid API key as `Authorization: Bearer <key>`."
}{
"error": "This workspace includes 5 seats."
}{
"error": "Only an owner can invite another owner."
}{
"error": "They are already in this workspace."
}{
"error": "Over 240 requests a minute. Slow down and retry."
}Authorizations
Your API key (ta_live_…) from Settings → API keys, sent as Authorization: Bearer <key>. Keep it on a server: it can message every customer you have. A key is full, build or read-only; a request its level does not allow is refused with 403.
Headers
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Body
Response
A pending invitation to this address was refreshed and sent again.
The invitation's id (inv_…).
"inv_2d3f5a7c-9e1b-4d6f-8a2c-4e6a8c0e2f57"
Who is invited, lower-cased.
"anjali@sunrisedental.in"
The role they will have.
owner, admin, member "member"
pending until it is accepted or revoked. A pending invitation past expiresAt no longer works.
pending, accepted, revoked "pending"
When its link stops working: 14 days after it was last sent.
"2026-10-20T10:40:00.000Z"
"2026-10-06T10:40:00.000Z"