Skip to main content
DELETE
DELETE /projects/{project}/auth/tokens/{token_id}
Revokes a token by id.

Endpoint details

string
required
Bearer pat_... (Project API Token). Keep this token on your backend/server.
string
required
Project slug. This acts as the Project ID in API paths.
string
required
Token ID returned by the token list or create response.
boolean
required
true for a successful response and false for an error response.
object | null
Endpoint-specific response data when ok is true; null on errors.
object | null
Error code and message when ok is false; null on success.
string
required
Request identifier you can use when troubleshooting a specific API call.

Authentication

Project API Token. You may only revoke tokens your credential is allowed to manage.

Parameters

Path: token_id integer required.

Request examples

Basic request:
Full request:

Response examples

Success:
Error or alternate response: