POST Revoke OAuth Client Token

​

Retires an access token before it expires. Uses the same HTTP Basic client credentials as POST /oauth/tokens.

The body is form-encoded and requires access_token.

Headers

  • O_AUTH_CLIENT_ID and OAUTH_SECRET

  • Application key for specific client app

  • Version of the API to be used

  • Unique request identifier

Body

required
application/json

Responses

  • The token was revoked.

  • The client credentials are invalid.

Request Example for post/oauth/tokens/revoke
curl https://api-public-demo.menu.app/api/oauth/tokens/revoke \
  --request POST \
  --header 'Basic Authorization: Authorization: Basic e3tPQVVUSF9DTElFTlRfSUR9fTp7e09BVVRIX1NFQ1JFVH19' \
  --header 'Application: application-key' \
  --header 'API-VERSION: ' \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'access_token=0ca417cf6f3a90488ffee32c3acb6fcd'
No Body