Skip to main content
Revokes a single token. Call this when a user disconnects your integration, or whenever a token may have been exposed.

Endpoint

Authentication

None beyond the token itself - possession of the token is what authorizes revoking it.

Request Body

Content type: application/x-www-form-urlencoded
There is no token_type_hint parameter. Chamelio looks the value up as an access token first, then as a refresh token.

Request Example

Response

Success Response

Status Code: 200 OK
Revocation always returns 200 with an empty object, whether the token existed, was already revoked, or never existed at all. This follows RFC 7009 and prevents the endpoint from being used to test whether a token value is valid. The call is safe to retry.

Error Responses

422 Unprocessable Entity

Returned when the token form field is missing from the request body.

Notes

Revoking an access token does not revoke its refresh token, and revoking a refresh token does not revoke the access token it belongs to. To cut off an integration completely, revoke both, or delete the application - that revokes every token it ever issued.
Refreshing a token revokes the previous access and refresh token pair automatically, so you do not need to revoke them yourself after a rotation.

Use Cases

  • User disconnects your integration - Drop the token you hold for them
  • Credential exposure - Invalidate a token that may have leaked
  • Sign-out - End an authorized session rather than waiting for expiry