members

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-members"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/cf553841-df96-4d22-8b31-32874c639ac4/social-card.svg?v=3e7ae33eec8b" alt="members" width="600" height="315"></a>
POSThttps://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
POSThttps://lucidace.com/v1/orgs/{org_id}/impersonation/endScope org:read

End 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_idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/orgs/{org_id}/invitesScope members:read

Open invites (not accepted, not expired), newest first. The tokens are never listed.

Parameters

org_idstringpathrequired

Code 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[]required
Show child parameters
created_atstringrequired
emailstringrequired
expires_atstringrequired
idstringrequired
org_idstringrequired
rolestringrequired
next_cursorstring
403
404
POSThttps://lucidace.com/v1/orgs/{org_id}/invitesScope members:write

Parameters

org_idstringpathrequired

Request body

application/json
emailstringrequired
rolestringrequired
admin | 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
inviteobjectrequired
Show child parameters
created_atstringrequired
emailstringrequired
expires_atstringrequired
idstringrequired
org_idstringrequired
rolestringrequired
tokenstringrequired
Shown once; deliver it to the invitee out of band.
400
403
404
DELETEhttps://lucidace.com/v1/orgs/{org_id}/invites/{id}Scope members:write

Parameters

org_idstringpathrequired
idstringpathrequired

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/orgs/{org_id}/invites/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
403
404
GEThttps://lucidace.com/v1/orgs/{org_id}/membersScope members:read

Parameters

org_idstringpathrequired

Code 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
GEThttps://lucidace.com/v1/orgs/{org_id}/members/{user_id}Scope members:read

Parameters

org_idstringpathrequired
user_idstringpathrequired

Code 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_atstringrequired
emailstringrequired
namestringrequired
rolestringrequired
user_idstringrequired
403
404
DELETEhttps://lucidace.com/v1/orgs/{org_id}/members/{user_id}Scope members:write

Remove a member from the org (their other orgs are untouched). Only owners remove an owner; the last owner cannot be removed (409).

Parameters

org_idstringpathrequired
user_idstringpathrequired

Code 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
PATCHhttps://lucidace.com/v1/orgs/{org_id}/members/{user_id}Scope members:write

Parameters

org_idstringpathrequired
user_idstringpathrequired

Request body

application/json
rolestringrequired
owner | 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
POSThttps://lucidace.com/v1/orgs/{org_id}/members/{user_id}/impersonateScope admin

Open a short session as a member. Owners only; the start is audited with both identities.

Parameters

org_idstringpathrequired
user_idstringpathrequired

Code 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_atstringrequired
403
404
409 target is an owner or yourself
GEThttps://lucidace.com/v1/orgs/{org_id}/members/{user_id}/notificationsScope admin

Parameters

org_idstringpathrequired
user_idstringpathrequired

Code 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[]required
Kinds from mention, mention_email.
404
PUThttps://lucidace.com/v1/orgs/{org_id}/members/{user_id}/notificationsScope admin

Admin override: mute notification kinds for a member (on top of their own preferences).

Parameters

org_idstringpathrequired
user_idstringpathrequired

Request body

application/json
mutedstring[]required
Kinds 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

Responses

400
403
404
Updated