DELETE
/
api
/
v1
/
tokens
/
{id}
{
  "error": "Token not found"
}
Deletes a token, immediately revoking its access to the API.
This action is irreversible. The token will be permanently revoked.
Requires User token authentication
Required permissions: delete on token resource

Path Parameters

id
string
required
Token ID (UUID format)

Example

curl -X DELETE "https://api.garnet.ai/v1/tokens/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer $USER_TOKEN"

Response

Returns 204 No Content on successful deletion.

Error Examples

{
  "error": "Token not found"
}
{
  "error": "Unauthorized, authentication required"
}