DEVELOPER DOCUMENTATION
Revoke Token
Revoke a personal API token (RFC 7009).
POST
/api/agent/oauth/revokeRevokes a personal API token, following RFC 7009: the call always returns 200, even for unknown or already-revoked tokens, so revocation can never leak whether a token existed.
The body is form-encoded (application/x-www-form-urlencoded). Use this when decommissioning an integration or responding to a suspected leak. For routine rotation, prefer the token management API, which can also revoke other tokens on the account by ID.
Requirements: none beyond possessing the token value to revoke.
Request
Section titled “Request”tokenstringbodyrequiredThe ot_pat_... token to revoke.
Response
Section titled “Response”200 with an empty JSON body. The token stops authenticating immediately.
Errors
Section titled “Errors”| Status | error | Meaning |
|---|---|---|
400 | invalid_request | The token field is missing |
500 | server_error | Unexpected failure |