Skip to content
Open the portal
Developer docs

Revoke All Sessions

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

Sign out everywhere: every session of this person, optionally keeping this one.

Media typeapplication/json
RevokeAllIn
object
keep_current
Keep Current
boolean
default: true

Successful Response

Media typeapplication/json
Response Revoke All Sessions V1 Auth Sessions Revoke All Post
object
key
additional properties
any
Examplegenerated
{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}