Sign out every session except the current one
const url = 'https://api.vexarn.dev/api/sessions/revoke-others';const options = { method: 'POST', headers: {cookie: '__Host-vexarn.session_token=<__Host-vexarn.session_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.vexarn.dev/api/sessions/revoke-others \ --cookie __Host-vexarn.session_token=<__Host-vexarn.session_token>Needs a recent sign-in: the current session must have been signed in less than 2 hours ago, like GitHub’s sudo mode. Otherwise sign in again (GET /api/account/sign-in-providers lists the providers you can use) and retry from the new session.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”How many sessions were signed out
object
How many sessions were signed out.
Example generated
{ "revoked": 1}No session
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}The current session was signed in 2 hours ago or earlier (fresh_sign_in_required); nothing was signed out
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}Too many requests from this user or client address
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}Headers
Section titled “Headers”Seconds until the rate limit window resets