/v1/workspaces/{workspace_uid}/members/{member_uid}Removes a member from the workspace. They lose access immediately. Resources they created stay in the workspace.
Requires the owner or admin role. You cannot remove yourself or the owner, and admins cannot remove another admin.
The response contains the member as they were before removal.
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Path parameters
workspace_uidstringRequiredThe workspace's uid. When the route also takes X-Workspace-Slug, both must name the same workspace.
member_uidstringRequiredThe membership's uid from List members. This is not the member's user_uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The member was removed.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
uidstringRequiredUnique identifier of the membership. Use it in /members/{member_uid} paths.
user_uidstringRequiredThe member's user ID.
usernamestringRequiredThe member's username.
emailstringRequiredThe member's email address.
avatar_urlstringAPI-relative path of the member's profile picture. Omitted when they have none.
rolestringRequiredThe member's role.
One ofowneradmindeveloperviewer
permissionsarray of stringsRequiredThe permissions the role grants.
One ofworkspace.readworkspace.manageresource.writeruntime.connectsecrets.readsecrets.managemembers.manageaudit.readbilling.readbilling.manageworkspace.transferworkspace.delete
statusstringRequiredMembership status. Only active members can access the workspace.
One ofactivesuspended
joined_atstring (date-time)RequiredWhen the member joined.
invited_byobjectWho invited the member. Omitted for the owner and when unknown.
Show attributesHide attributes
uidstringRequiredThe user's ID.
usernamestringRequiredThe user's username.
is_current_userbooleanRequiredtrue for your own membership.
Errors
| Status | Meaning |
|---|---|
400 | The request was malformed or failed validation. |
401 | The API key is missing, invalid, expired or revoked. |
403 | Not allowed: your role cannot manage members, you cannot remove yourself from the workspace, the workspace owner cannot be removed, or admins cannot remove another admin. |
404 | No member with this uid in the workspace (workspace member not found). |
Errors use the standard error format.