Skip to content

Close the sessions of the whole team at this company

POST
/v1/tenants/me/members/revoke-sessions
curl --request POST \
--url https://api.emite.cr/v1/tenants/me/members/revoke-sessions \
--header 'Authorization: Bearer <token>'

For an incident. Every member except the caller — and the owner, unless the caller is the owner — loses this company from the sessions they have now: they stay signed in to their other companies, and only signing in again brings them back here. The WhatsApp numbers linked from this company are unlinked, and each member gets a notice by email. Audited as one member.sessions_revoked row with scope: team and the count.

Media typeapplication/json
object
members
required

How many members lost this company from their current sessions: 1 for one member; for the whole team, every member but the caller (and but the owner, unless the caller is the owner) — 0 when there was nobody else.

number
whatsappUnlinked
required

How many WhatsApp numbers linked from this company were unlinked with them.

number
Example
{
"members": 1,
"whatsappUnlinked": 0
}

Missing or invalid JWT.

FEATURE_NOT_IN_PLAN — the plan does not include the session policy.

Insufficient scope. Team management is JWT-only — API keys cannot reach these endpoints.