Sign out everywhere else
const url = 'https://api.sloose.com/auth/account/sessions/end-others';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.sloose.com/auth/account/sessions/end-others \ --header 'Authorization: Bearer <token>'Signs out every browser you are signed in from but this one — each with its CRM tabs’ own sessions — and a staff member’s view of an org as you, which acts as you. This browser, and its own CRM tabs, stay signed in. Answers how many browsers were signed out. Session only.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Signed out.
object
How many browsers were signed out: 0 when there were none.
Examplegenerated
{ "ended": 1}No bearer, or one that is expired, revoked or no longer resolves to a member.
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}An API token was used (code: SESSION_REQUIRED), or the session is a staff member’s view of an org (code: STAFF_VIEW).
The error envelope every non-2xx answer uses.
object
Human-readable explanation.
Machine-readable reason. Absent on a few legacy 400s.
Examplegenerated
{ "error": "example", "code": "example"}