WAHooks
API ReferenceTokens

Revoke API Token

Revoke and permanently delete an API token.

DELETE /api/tokens/{id}

Permanently revokes the specified API token. Any requests using this token will immediately begin returning 401 Unauthorized. This action cannot be undone.

Authentication

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token. Format: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the API token to revoke.

Response

200 OK
{
  "success": true
}
401 Unauthorized
{
  "statusCode": 401,
  "message": "Unauthorized"
}
404 Not Found
{
  "statusCode": 404,
  "message": "Token not found"
}

On this page