Skip to content

End one of your sessions

DELETE
/auth/account/sessions/{id}
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.

id
required

The session

string
Example
b3f1c8a2

The session

Ended.

Media typeapplication/json

A write that carries nothing back.

object
ok
required
boolean
Example
{
"ok": true
}

No bearer, or one that is expired, revoked or no longer resolves to a member.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
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).

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

No such the session, or it is not visible to this session.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
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.

Media typeapplication/json

The error envelope every non-2xx answer uses.

object
error
required

Human-readable explanation.

string
code

Machine-readable reason. Absent on a few legacy 400s.

string
key
additional properties
Examplegenerated
{
"error": "example",
"code": "example"
}

Report a problem with this page