Skip to content

Revoke Single Token

POST
/internal/revoke/token/{jti}

Revoke a specific token by JTI.

Adds the token to the blocklist with TTL matching max token lifetime.

Args: jti: Token ID (UUID) to revoke api_key: Validated internal API key (from dependency)

Returns: 204 No Content on success

Raises: 401: If API key is invalid 503: If Redis is unavailable

jti
required
Jti
string
X-API-Key
required
X-Api-Key
string

Token revoked successfully

Invalid API key

Example
{
"detail": {
"error": "invalid_api_key"
}
}

Validation Error

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

Redis unavailable

Example
{
"detail": {
"error": "redis_unavailable"
}
}