Leave a workspace
Removes the caller's own membership and drops the per-item grants they held in that workspace. Any member may leave their own workspace; the last remaining owner cannot, and that attempt is rejected as a conflict. Owner departures are serialized on the workspace row so two owners cannot both leave concurrently.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/workspaces/string/membership"{ "data": { "id": "string" }}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}Delete a workspace
Records a `workspace.deleted` event and then permanently deletes the workspace and everything that cascades from it. Requires `workspace:delete`, which only owners hold. A workspace that no longer exists is not found.
Catch up on workspace events
Returns the workspace's current event version plus the events after `afterVersion`, each projected down to what the caller is allowed to see, so a client that fell behind can resynchronize. Requires `workspace:read`. Pass `afterVersion` and `limit` as integer strings; a non-integer value is a validation error and an unknown workspace is not found.