Close the sessions of the whole team at this company
const url = 'https://api.emite.cr/v1/tenants/me/members/revoke-sessions';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”object
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.
How many WhatsApp numbers linked from this company were unlinked with them.
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.