Skip to content

Revoke all sessions

POST
/api/v1/auth/sessions/revoke-all
curl --request POST \
--url https://example.com/api/v1/auth/sessions/revoke-all \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "keep_current": true }'

Revokes all sessions. It requires a signed-in User with the account scope. It can return 401 if the session is missing or expired, 403 if access is denied and 429 if the request limit is reached. Route: /api/v1/auth/sessions/revoke-all. Inputs: . A recent account assertion is required. Do not automatically replay this operation after an uncertain result.

Media typeapplication/json
object
keep_current
required
boolean
Examplegenerated
{
"keep_current": true
}
Media typetext/plain
integer format: int64
Media typeapplication/json
object
code
required
string
message
required
string
Examplegenerated
{
"code": "example",
"message": "example"
}