Skip to content

API Reference / Memberships

Leave a workspace

Removes the caller's own accepted membership of the named workspace, whichever workspace is current. The owner must transfer ownership first, and a pending invitation is declined rather than left.

POST/accounts.v1.Accounts/LeaveWorkspace

Request body

application/jsonRequired

Request for the caller to leave a workspace they are an accepted member of. The owner transfers ownership first.

workspaceId?string

Opaque 16-byte identifier of the workspace to leave. It need not be the current workspace.

Format"byte" base64

Response body

application/json

Success

No fields.

curl -X POST "https://api.goldmine.to/accounts.v1.Accounts/LeaveWorkspace" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workspaceId": "AAECAwQFBgcICQoLDA0ODw=="
  }'
{}