OAuth2 token revocation endpoint (RFC 7009). Revokes an access or refresh token issued to the authenticated client. Access and refresh tokens issued together are revoked together.
Authenticate with HTTP Basic or with client_id and client_secret in the request body, the same as the token endpoint.
token_type_hint is an optional lookup optimization; both token types are searched regardless. Per RFC 7009 Section 2.2 the endpoint returns 200 even when the token is unknown or already revoked. It cannot be used to probe for valid tokens.
- Mock serverhttps://cafe.redocly.com/_mock/openapi/cafe/oauth2/revoke
- Live server.https://api.cafe.redocly.com/oauth2/revoke
curl -i -X POST \
https://cafe.redocly.com/_mock/openapi/cafe/oauth2/revoke \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d token=YOUR_ACCESS_TOKEN \
-d token_type_hint=access_token \
-d client_id=client_1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d \
-d client_secret=YOUR_CLIENT_SECRET