members
POST
https://lucidace.com /v1/invites/accept Redeem an invite token as the signed-in user (email must match the invite).
Request body
application/json
tokenstringrequired{
"token": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/invites/accept" \
-H "Content-Type: application/json" \
-d '{"token":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
404 unknown, expired or mismatched invite
POST
https://lucidace.com /v1/orgs/{org_id}/impersonation/end Scope org:readEnd the impersonation session making this call (audited under the member and the owner). The owner's own session is restored in the cookie; 401 (cookie cleared) if it expired meanwhile.
Parameters
org_idstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/orgs/{org_id}/impersonation/end"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
401 owner session expired; cookie cleared
404
GET
https://lucidace.com /v1/orgs/{org_id}/invites Scope members:readOpen invites (not accepted, not expired), newest first. The tokens are never listed.
Parameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/invites"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Invite
Example
{
"data": [
{
"created_at": "2024-01-01T00:00:00Z",
"email": "string",
"expires_at": "2024-01-01T00:00:00Z",
"id": "string",
"org_id": "string",
"role": "string"
}
],
"next_cursor": "string"
}Schema
dataInvite[]requiredShow child parameters
created_atstringrequiredemailstringrequiredexpires_atstringrequiredidstringrequiredorg_idstringrequiredrolestringrequirednext_cursorstring403
404
POST
https://lucidace.com /v1/orgs/{org_id}/invites Scope members:writeParameters
org_idstringpathrequiredRequest body
application/json
emailstringrequiredrolestringrequiredadmin | member | viewer | billing (ownership is granted by promoting a member).{
"email": "string",
"role": "string"
}Code samples
cURL
curl -X POST "https://lucidace.com/v1/orgs/{org_id}/invites" \
-H "Content-Type: application/json" \
-d '{"email":"string","role":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"invite": {
"created_at": "2024-01-01T00:00:00Z",
"email": "string",
"expires_at": "2024-01-01T00:00:00Z",
"id": "string",
"org_id": "string",
"role": "string"
},
"token": "string"
}Schema
inviteobjectrequiredShow child parameters
created_atstringrequiredemailstringrequiredexpires_atstringrequiredidstringrequiredorg_idstringrequiredrolestringrequiredtokenstringrequiredShown once; deliver it to the invitee out of band.
400
403
404
DELETE
https://lucidace.com /v1/orgs/{org_id}/invites/{id} Scope members:writeParameters
org_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}/invites/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucidace.com /v1/orgs/{org_id}/members Scope members:readParameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/members"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Page of Member
404
GET
https://lucidace.com /v1/orgs/{org_id}/members/{user_id} Scope members:readParameters
org_idstringpathrequireduser_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/members/{user_id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"created_at": "2024-01-01T00:00:00Z",
"email": "string",
"name": "string",
"role": "string",
"user_id": "string"
}Schema
created_atstringrequiredemailstringrequirednamestringrequiredrolestringrequireduser_idstringrequired403
404
DELETE
https://lucidace.com /v1/orgs/{org_id}/members/{user_id} Scope members:writeRemove a member from the org (their other orgs are untouched). Only owners remove an owner; the last owner cannot be removed (409).
Parameters
org_idstringpathrequireduser_idstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}/members/{user_id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
409 last owner
PATCH
https://lucidace.com /v1/orgs/{org_id}/members/{user_id} Scope members:writeParameters
org_idstringpathrequireduser_idstringpathrequiredRequest body
application/json
rolestringrequiredowner | admin | member | viewer | billing{
"role": "string"
}Code samples
cURL
curl -X PATCH "https://lucidace.com/v1/orgs/{org_id}/members/{user_id}" \
-H "Content-Type: application/json" \
-d '{"role":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
409 would leave the org without an owner
POST
https://lucidace.com /v1/orgs/{org_id}/members/{user_id}/impersonate Scope adminOpen a short session as a member. Owners only; the start is audited with both identities.
Parameters
org_idstringpathrequireduser_idstringpathrequiredCode samples
cURL
curl -X POST "https://lucidace.com/v1/orgs/{org_id}/members/{user_id}/impersonate"TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"expires_at": "2024-01-01T00:00:00Z"
}Schema
expires_atstringrequired403
404
409 target is an owner or yourself
GET
https://lucidace.com /v1/orgs/{org_id}/members/{user_id}/notifications Scope adminParameters
org_idstringpathrequireduser_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucidace.com/v1/orgs/{org_id}/members/{user_id}/notifications"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"muted": [
"string"
]
}Schema
mutedstring[]requiredKinds from
mention, mention_email.404
PUT
https://lucidace.com /v1/orgs/{org_id}/members/{user_id}/notifications Scope adminAdmin override: mute notification kinds for a member (on top of their own preferences).
Parameters
org_idstringpathrequireduser_idstringpathrequiredRequest body
application/json
mutedstring[]requiredKinds from
mention, mention_email.{
"muted": [
"string"
]
}Code samples
cURL
curl -X PUT "https://lucidace.com/v1/orgs/{org_id}/members/{user_id}/notifications" \
-H "Content-Type: application/json" \
-d '{"muted":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Updated