Send Docs Feedback

Revoke an Access Token

API Platform Base Path:{org_name}

API Resource Path: /oauth2/accesstokens/{access_token}?action=revoke

Revokes a specific access token

Verb: POST

Auth: Basic Auth

Media types:


Sample Request:
$ curl -H "Content-type:application/octet-stream" -X POST \{org_name}}/oauth2/accesstokens/{access_token}?"action=revoke&cascade=true" \ -u myname:mypass
Query Parameters:
Name Description Default Required?
action Identifies the action to be taken, in this case 'revoke'. N/A Yes
cascade Setting 'cascade' to 'true' causes refresh tokens associated with the access token to be affected by the same action. Setting 'cascade' to 'false' leaves associated refresh tokens unaffected by this action. true No
Sample Response:
Success 204 
  "code" : "keymanagement.service.....",
  "message" : "Access Token doesnot exist",
  "contexts" : [ ]

Error Codes:
1. keymanagement.service.oauth10_access_token_doesnotexist
3. keymanagement.service.application_not_approved
4. keymanagement.service.oauth10_access_token_revoke_failed

Help or comments?