Endpoint
Revoking a token is immediate and cannot be undone. The token will be invalid for all future requests.
Path Parameters
The ID of the access token to revoke.
Response
Returns204 No Content on success with an empty response body.
Examples
Permissions
To revoke a token, your access token must have:- The
revoke-access-tokenoperation permission (viaopsorop_groups.account.write) - The target token must be within the scope of your
access_tokensresource set
Example: Token with revocation permissions
"app-".
Common Scenarios
Rotate tokens
When rotating tokens, create the new token first, then revoke the old one:Clean up expired tokens
List and revoke tokens that are no longer needed:Respond to security incidents
If a token is compromised, revoke it immediately:Error Handling
404 Not Found
404 Not Found
The specified token ID does not exist. This could mean:
- The token was already revoked
- The token ID was mistyped
- The token never existed
403 Forbidden
403 Forbidden
Your access token lacks permission to revoke the target token. Check that:
- Your token has
revoke-access-tokenoperation permission - The target token ID is within your
access_tokensscope - You’re not trying to revoke your own currently-in-use token (use a different admin token)
401 Unauthorized
401 Unauthorized
Best Practices
Audit Token Usage
Regularly review active tokens using the List Access Tokens endpoint and revoke unused ones.
Automate Rotation
Implement automated token rotation for long-lived tokens to minimize exposure.
Monitor Revocations
Log token revocations for security auditing and incident response.
Graceful Rotation
When rotating tokens, ensure the new token is deployed before revoking the old one to avoid service disruption.