Skip to content

API Reference / Memberships

Remove a member from a workspace

Removes a membership, revoking the member's access to the workspace.

POST/accounts.v1.Accounts/DeleteMembership

Request body

application/jsonRequired

Request to remove a member from the caller's workspace. The owner or an administrator can remove a member or a pending invitation. Only the owner can remove an administrator, and nobody can remove the owner. The member loses access immediately and their API keys in the workspace are revoked.

membershipId?string

Opaque 16-byte identifier of the membership to remove, base64-encoded in JSON.

Format"byte" base64

Response body

application/json

Success

No fields.

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