Revoke token

POST /api/v1/tokens/{token_id}/revoke

Revoke an API token

Operation ID: revoke_token_api_v1_tokens__token_id__revoke_post · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Path

token_id string required

Responses

201 Successful Response

id string required

Token record ID

jti string required

JWT ID of the revoked token

name string

Token name

revoked_at string · date-time required

When the token was revoked

revoked_by string

Email of the user who revoked the token

revocation_reason string

Reason for revocation

400 Bad Request - Invalid input

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

404 Not Found - Resource does not exist

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object