Private preview of the new site. Not live.

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.

WhoAgents can call this
RESTPOST /v1/members/end
MCP toolmembers_end
Writesyes, send an Idempotency-Key
AreaTeam (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

FieldTypeRequired
membership_idstringyes

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

CodeStatusWhat to do
owner_cannot_leave409The owner can't leave a shop. Ownership moves only by transfer.
forbidden403This 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_limitedCan happen on any call. See errors.