members.end
End a membership: the owner removes a worker, or a worker leaves. Shop tokens end with it. The owner cannot leave; ownership moves only by transfer.
| Who | Agents can call this |
| REST | POST /v1/members/end |
| MCP tool | members_end |
| Writes | yes, send an Idempotency-Key |
| Area | Team (unlimited workers) |
When to use it
The owner removes a worker, or a worker leaves. Confirm first: their access and tokens end right away.
What to tell the owner
They no longer have access to the shop. The owner can't leave; ownership moves only by transfer.
Input
| Field | Type | Required |
|---|---|---|
membership_id | string | yes |
Example
POST https://doingwork.work/v1/members/end
content-type: application/json
Idempotency-Key: 3f1c...
{
"membership_id": "00000000-0000-4000-8000-000000000000"
}Output
JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.
Errors
| Code | Status | What to do |
|---|---|---|
owner_cannot_leave | 409 | The owner can't leave a shop. Ownership moves only by transfer. |
forbidden | 403 | This worker's role can't do this, or it needs a person's own sign-in rather than an agent token. Tell the person who can. |
invalid_input, invalid_token, rate_limited | Can happen on any call. See errors. |