06 / Endpoints
Members
Invite a member to the organisation
API key requiredInvites a creator to the organisation and sends the invitation email.
The response status is INVITED, which means they are not an organisation member yet. The creator has to accept through the link in the email to become ACTIVE, and until then they cannot be assigned to a workspace (an assignment returns 404).
userId comes back as null, because no account is linked yet. To cancel this invitation, pass the response's id to DELETE .../members/{userId}.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | string | Required | Organization IDExample: org_cuid123abc |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| string | Required | Email address of the person to invitemaxLength 320 · email | Example: creator@example.com | |
| role | enum | Required | Role inside the organisationAllowed: ADMIN · MEMBER | Example: MEMBER |
{
"email": "creator@example.com",
"role": "MEMBER"
}Responses
| Status | Meaning |
|---|---|
| 201 | Invitation created (not yet accepted) |
| 400 | Bad request (validation failed)PartnerErrorResponse |
| 401 | Authentication failed (API key missing or invalid)PartnerErrorResponse |
| 403 | Forbidden (no access to that organisation)PartnerErrorResponse |
| 404 | Resource not foundPartnerErrorResponse |
| 429 | Rate limit exceededPartnerErrorResponse |
| 503 | Rate limit service temporarily unavailablePartnerErrorResponse |
Responses 201
| Field | Type | Required | Description |
|---|---|---|---|
| requestId | string | Required | |
| id | string | Required | Membership ID. Use this value to cancel the invitation. |
| userId | string | null | Required | |
| string | Required | ||
| role | string | Required | |
| status | string | Required | Example: INVITED |
{
"requestId": "string",
"id": "string",
"userId": "string",
"email": "string",
"role": "string",
"status": "INVITED"
}Organisation member list
API key requiredReturns only ACTIVE members who have accepted. Someone who was invited but has not accepted yet is not included. email is a case-insensitive partial-match filter.
This list is exactly who can be assigned to a workspace.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | string | Required | Organization IDExample: org_cuid123abc |
Query parameters
| Field | Type | Required | Description |
|---|---|---|---|
| string | Optional | Email partial-match filter (case-insensitive)Example: creator@ | |
| page | string | Optional | Page number (default 1)Example: 1 |
| limit | string | Optional | Items per page (default 15, max 100)Example: 15 |
Request body
This endpoint takes no request body.
Responses
| Status | Meaning |
|---|---|
| 200 | Member list |
| 400 | Bad request (validation failed)PartnerErrorResponse |
| 401 | Authentication failed (API key missing or invalid)PartnerErrorResponse |
| 403 | Forbidden (no access to that organisation)PartnerErrorResponse |
| 404 | Resource not foundPartnerErrorResponse |
| 429 | Rate limit exceededPartnerErrorResponse |
| 503 | Rate limit service temporarily unavailablePartnerErrorResponse |
Responses 200
| Field | Type | Required | Description |
|---|---|---|---|
| requestId | string | Required | |
| organizationId | string | Required | |
| members[] | object[] | Required | |
| userId | string | Required | |
| string | Required | ||
| name | string | Required | |
| role | string | Required | |
| joinedAt | string | Required | |
| pagination | object | Required | |
| page | number | Required | |
| limit | number | Required | |
| total | number | Required | |
| hasMore | boolean | Required |
{
"requestId": "string",
"organizationId": "string",
"members": [
{
"userId": "string",
"email": "string",
"name": "string",
"role": "string",
"joinedAt": "string"
}
],
"pagination": {
"page": 0,
"limit": 0,
"total": 0,
"hasMore": false
}
}Change an organisation member's role
API key requiredThe target is given as userId in the body. Demoting the last ADMIN to MEMBER is refused.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | string | Required | Organization IDExample: org_cuid123abc |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| userId | string | Required | Member whose role to changeExample: usr_cuid789ghi |
| role | enum | Required | Allowed: ADMIN · MEMBER |
{
"userId": "usr_cuid789ghi",
"role": "ADMIN"
}Responses
| Status | Meaning |
|---|---|
| 200 | Changed |
| 400 | Bad request (validation failed)PartnerErrorResponse |
| 401 | Authentication failed (API key missing or invalid)PartnerErrorResponse |
| 403 | Forbidden (no access to that organisation)PartnerErrorResponse |
| 404 | Resource not foundPartnerErrorResponse |
| 429 | Rate limit exceededPartnerErrorResponse |
| 503 | Rate limit service temporarily unavailablePartnerErrorResponse |
Responses 200
No body.
Remove a member from the organisation / cancel an invitation
API key requiredRemoves an organisation member, or cancels an invitation that has not been accepted. Their workspace memberships are cleaned up as well.
To cancel an invitation before acceptance, pass the invitation response's id (membershipId). At that point there is no userId, so nothing else identifies them.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | string | Required | Organization IDExample: org_cuid123abc |
| userId | string | Required | User ID. To cancel an invitation that has not been accepted, pass the invitation response's id (membershipId).Example: usr_cuid789ghi |
Request body
This endpoint takes no request body.
Responses
| Status | Meaning |
|---|---|
| 200 | Removed |
| 400 | Bad request (validation failed)PartnerErrorResponse |
| 401 | Authentication failed (API key missing or invalid)PartnerErrorResponse |
| 403 | Forbidden (no access to that organisation)PartnerErrorResponse |
| 404 | Resource not foundPartnerErrorResponse |
| 429 | Rate limit exceededPartnerErrorResponse |
| 503 | Rate limit service temporarily unavailablePartnerErrorResponse |
Responses 200
No body.
Assign a member to a workspace
API key requiredAssigns a member to a workspace. If they are already in it, only the role changes (idempotent).
There is no acceptance step — it takes effect as soon as you call it. The target's organisation membership must be ACTIVE, though: if they have not accepted their invitation yet it is refused with 404 Active organization member not found.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | string | Required | Organization IDExample: org_cuid123abc |
| workspaceId | string | Required | Workspace IDExample: ws_cuid456def |
| userId | string | Required | User ID (their organisation membership must be ACTIVE)Example: usr_cuid789ghi |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| role | enum | Required | Allowed: ADMIN · EDITOR · VIEWER | Example: EDITOR |
{
"role": "EDITOR"
}Responses
| Status | Meaning |
|---|---|
| 200 | Assigned |
| 400 | Bad request (validation failed)PartnerErrorResponse |
| 401 | Authentication failed (API key missing or invalid)PartnerErrorResponse |
| 403 | Forbidden (no access to that organisation)PartnerErrorResponse |
| 404 | Resource not foundPartnerErrorResponse |
| 429 | Rate limit exceededPartnerErrorResponse |
| 503 | Rate limit service temporarily unavailablePartnerErrorResponse |
Responses 200
No body.
Remove a member from a workspace
API key requiredRemoves them from the workspace only. The organisation membership stays.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
| orgId | string | Required | Organization IDExample: org_cuid123abc |
| workspaceId | string | Required | Workspace IDExample: ws_cuid456def |
| userId | string | Required | User ID (their organisation membership must be ACTIVE)Example: usr_cuid789ghi |
Request body
This endpoint takes no request body.
Responses
| Status | Meaning |
|---|---|
| 200 | Removed |
| 400 | Bad request (validation failed)PartnerErrorResponse |
| 401 | Authentication failed (API key missing or invalid)PartnerErrorResponse |
| 403 | Forbidden (no access to that organisation)PartnerErrorResponse |
| 404 | Resource not foundPartnerErrorResponse |
| 429 | Rate limit exceededPartnerErrorResponse |
| 503 | Rate limit service temporarily unavailablePartnerErrorResponse |
Responses 200
No body.



