These endpoints let you list, invite, remove, and manage the roles of members in your organization. You can also revoke pending invitations.Documentation Index
Fetch the complete documentation index at: https://docs.scaling.cloud/llms.txt
Use this file to discover all available pages before exploring further.
All team management endpoints require the
org:admin role. Requests from non-admin members will receive a 401 not_authorized error.GET /api/team/members
List all current members of your organization and any pending invitations. Authentication| Status | Code | Description |
|---|---|---|
401 | not_authorized | You are not authenticated or do not have the org:admin role. |
POST /api/team/members/invite
Send an invitation to a new member by email address. The invited person will receive an email prompting them to join your organization. AuthenticationThe email address to send the invitation to. Must be a valid email and no longer than 320 characters.
The role to assign to the invitee upon accepting. Use
org:admin to grant admin access or org:member for standard access.| Status | Code | Description |
|---|---|---|
400 | invalid_request_error | The request body is missing or contains invalid fields. |
401 | not_authorized | You are not authenticated or do not have the org:admin role. |
500 | server_error | An unexpected error occurred. |
PATCH /api/team/members//role
Update the role of an existing organization member. AuthenticationThe ID of the member whose role you want to update. You can retrieve member IDs from the
GET /api/team/members response.The new role to assign to the member.
| Status | Code | Description |
|---|---|---|
400 | cannot_change_own_role | You attempted to change your own role, which is not allowed. |
401 | not_authorized | You are not authenticated or do not have the org:admin role. |
500 | server_error | An unexpected error occurred. |
DELETE /api/team/members/
Remove a member from your organization. This revokes their access immediately. AuthenticationThe ID of the member to remove. You can retrieve member IDs from the
GET /api/team/members response.| Status | Code | Description |
|---|---|---|
400 | cannot_remove_self | You attempted to remove yourself from the organization, which is not allowed. |
401 | not_authorized | You are not authenticated or do not have the org:admin role. |
500 | server_error | An unexpected error occurred. |
DELETE /api/team/members/invitations/
Revoke a pending invitation. The invitee will no longer be able to accept it. AuthenticationThe ID of the invitation to revoke. You can retrieve invitation IDs from the
GET /api/team/members response.| Status | Code | Description |
|---|---|---|
401 | not_authorized | You are not authenticated or do not have the org:admin role. |
500 | server_error | An unexpected error occurred. |