Skip to main content
POST
/
workspaces
/
{workspaceId}
/
leave
Leave Workspace
curl --request POST \
  --url https://api.raydocs.com/workspaces/{workspaceId}/leave \
  --header 'Authorization: Bearer <token>'

Authentication & Scope

Requires the workspace-users-write ability.
If you are the only admin of the workspace, you must assign another admin before leaving.

Request

POST /workspaces/1/leave HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
workspaceIdintegerYesThe workspace ID

Response

200 OK – Successfully left the workspace.
{
  "message": "You have left the workspace"
}
403 Forbidden – You are the only admin and cannot leave. 404 Not Found – You are not a member of this workspace.

Authorizations

Authorization
string
header
required

Personal Access Token

Path Parameters

workspaceId
integer
required

Response

Left workspace