Team
Revoke an invite
Revokes the invite. Only owners can revoke admin invites.
- Console only: owner or admin
- Workspace:
X-Tenant-ID
Path parameters
iduuidrequiredInvite 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 invite was revoked.
- 400Bad request. The id is not a valid UUID.
- 401Unauthorized. No signed-in session (
unauthorized). - 403Forbidden. API keys can never call this endpoint (
API keys cannot administer workspaces). A signed-in user who is not an owner or admin getsadmin required; a user who is not a member of the workspace getsforbidden. Admins getonly owners can revoke admin invitesfor admin invites. - 404Not found. No invite with this id.