OAuth

Revoke an OAuth token (RFC 7009)

Revokes an access token or refresh token. The authorization server invalidates the token so it can no longer be used. Follows RFC 7009.

post/v1/oauth/revoke

Request

  • Base URL: https://api.1claw.co
  • URL: https://api.1claw.co/v1/oauth/revoke
  • Auth: none required

Request body

tokenstring required

The token to revoke (access_token or refresh_token)

token_type_hint'access_token' | 'refresh_token'

Hint about the type of token being revoked

Response

Token revoked successfully (or was already invalid)

revokedboolean

Example response

{
  "revoked": true
}

Changes

No recorded changes to this operation across all 2 revisions of this API.