Revoke token

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

Revoke an API token.

Path Parameters:

  • token_id: UUID of the token to revoke

Request Body: (optional)

  • reason: Optional reason for revocation

Note: Once revoked, the token can no longer be used for authentication. The token is added to a blacklist and will be rejected on all future requests.

Revoked tokens cannot be un-revoked.

Returns: Revoked token information with revocation timestamp.

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_idstringrequired

Responses

201Successful Response

successboolean
messagestring
codestring
dataAPITokenRevokeResponse

400Bad Request - Invalid input

401Unauthorized - Authentication required

403Forbidden - Insufficient permissions

404Not Found - Resource does not exist

422Validation Error

detailarray · ValidationErrorValidationError
5 fields
locarray · string | integerrequired
msgstringrequired
typestringrequired
inputobject
ctxobject