DELETE /tokens/:id endpoint revokes a token, preventing it from authenticating any future requests. Revocation takes effect immediately — any in-flight requests using the token may still complete, but all subsequent attempts will be rejected. After revocation, the token record remains in your workspace and is still retrievable via GET /tokens/:id, but its status changes to revoked.
Required scope: tokens:revoke
Path parameters
The unique identifier of the token to revoke. Format:
tok_a1b2c3d4e5f6g7h8i9j0k1l2. This is the id field returned when the token was created or listed.Request
Response
A successful revocation returns204 No Content with an empty body. There is no JSON payload to parse.
After revocation
Once revoked, the token’s record remains accessible viaGET /tokens/:id. The response will show the token with "status": "revoked":
revoked event, showing who performed the revocation and when.
Error responses
If the token ID does not exist in your workspace, the API returns404 Not Found:
If you receive a
404 when attempting to revoke a token, the token is already absent from your workspace — either it was previously revoked or it never existed. Your integration can safely treat a 404 on a DELETE request as a successful outcome.