End one of your sessions
const url = 'https://api.sloose.com/auth/account/sessions/b3f1c8a2';const options = {method: 'DELETE', 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 DELETE \ --url https://api.sloose.com/auth/account/sessions/b3f1c8a2 \ --header 'Authorization: Bearer <token>'Signs out one browser you are signed in from: a session is a row, so this deletes it — and every CRM tab’s own session minted from it — and the next request with any of those bearers is unauthenticated. Your own sessions only — an id from anybody else’s list is not found. The session asking is not ended here, nor the browser session it belongs to; sign out for that. Session only.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The session
Example
b3f1c8a2The session
Responses
Section titled “Responses”Ended.
A write that carries nothing back.
object
Example
{ "ok": true}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"}No such the session, or it is not visible to this session.
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"}That is the session asking, or the browser session it is a CRM tab’s own session of (code: CURRENT_SESSION): sign out instead.
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"}