Overview
The revocation endpoint allows clients to revoke access or refresh tokens. This follows RFC 7009 (OAuth 2.0 Token Revocation).Request Body
Content-Type:application/json
The access or refresh token to revoke
Your OAuth client ID
Your OAuth client secret
Response
Success (200 OK)
Error (401 Unauthorized)
Example Requests
Revocation Behavior
Revoking Refresh Tokens
Revoking Refresh Tokens
When you revoke a refresh token, the associated access token is also revoked. This ensures complete session termination.
Revoking Access Tokens
Revoking Access Tokens
When you revoke an access token, only that specific token is invalidated. The refresh token remains valid.
Idempotent Operation
Idempotent Operation
Calling revoke on an already-revoked token returns success. This is intentional for security reasons per RFC 7009.
Token Family Revocation
Token Family Revocation
Due to refresh token rotation, revoking any token in a refresh chain does not automatically revoke other tokens in that family. Each token must be explicitly revoked.
Use Cases
User Logout
Revoke tokens when a user logs out to invalidate their session
Security Incident
Immediately revoke tokens if a security breach is detected
Token Cleanup
Revoke old tokens during token refresh or session cleanup
Account Deletion
Revoke all tokens when an account is deleted or disabled
Security Considerations
Client authentication is required to prevent unauthorized token revocation.
