Passo Developers
Api

Remove a member from a workspace

DELETE
/workspaces/{workspaceId}/members/{userId}

Removes a member from the workspace, revoking their data access on their next request. 400 if workspaceId is not a wsp_ id; 403 for a workspace you are not a member of. Among members only an admin may remove; a non-admin receives a 404. 422 if the target is the workspace's last admin — promote another member to admin first.

Authorization

AuthorizationBearer <token>

A Supabase-issued OAuth user access token. On collection endpoints, pair with a Passo-Workspace header to pick a workspace.

In: header

Path Parameters

workspaceId*string

The workspace's public id, e.g. wsp_abc.

userId*string
Formatuuid

Response Body

application/json

curl -X DELETE "https://example.com/workspaces/string/members/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "success": true}