Skip to content

Revoke an access or refresh token

POST
/oauth/revoke
curl --request POST \
--url https://api.adversarial.com/api/oauth/revoke \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data token=example \
--data token_type_hint=example

Token revocation (RFC 7009). Submit the token to invalidate it. Per the specification this always responds 200, whether or not the token existed, so callers cannot use it to probe for valid tokens.

Media typeapplication/x-www-form-urlencoded
object
token
required
string
token_type_hint

Hint about the token kind (RFC 7009). We ignore it because all lookup is by hash — but accepting it keeps the endpoint spec-shaped.

string | null
Examplegenerated
token=example&token_type_hint=example

Revocation processed (always 200 per RFC 7009)