Team
Remove a member
Removes the membership. The workspace owner cannot be removed, and only owners can remove admins.
- Console only: owner or admin
- Workspace:
X-Tenant-ID
Path parameters
iduuidrequiredMembership id (
idfrom the members list, notuser_id).
Headers
CookiestringrequiredThe
whatsappx_sessioncookie the app sets when you sign in. Browsers send it automatically; API keys are not accepted on this endpoint.X-Tenant-IDuuidrequiredWorkspace id. Required for session requests. You can pass
?tenant=<id>instead.
Response
200 OKapplication/json
okbooleanAlways
true.
Status codes
- 200OK. The member was removed.
- 400Bad request. The id is not a valid UUID.
- 401Unauthorized. No signed-in session (
unauthorized). - 403Forbidden. API keys and non-admins are rejected (see Console only). Rules:
the workspace owner cannot be removed,only owners can remove admins,the workspace owner cannot leave this way. - 404Not found. No member with this id in the workspace.