Skip to content

Revoke My Session

DELETE
/api/api/me/sessions/{session_id}
curl --request DELETE \
--url https://example.com/api/api/me/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Revoke a specific session.

If the revoked session is the current one, the user will be logged out on the next token refresh attempt. Revoking the current session is allowed.

session_id
required
Session Id
string format: uuid

Successful Response

Media type application/json
RevokeSessionResponse
object
revoked
required
Revoked
boolean
Example generated
{
"revoked": true
}

Validation Error

Media type application/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
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}