Was this helpful?

API Platform Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}

API Resource Path:

 /refreshtokens/{refresh_token}?action=revoke&cascade=true

Description: Revokes an OAuth 2.0 refresh token

Verb: POST
Auth: Basic Auth
Media types:
application/octet-stream
Sample Request:
$ curl -H "Content-type: application/octet-stream" -X POST \
https://api.enterprise.apigee.com/v1/o/{org_name}/oauth2/refreshtokens/{refresh_token}?"action=revoke&cascade=true" \
-u myname:mypass
Query Parameters:
Name Description Default Required?
action Specifies the action, 'approve' or 'revoke', to be taken against the specified token. N/A Yes
cascade Specifies whether the action should also be applied to the access token associated with the specified refresh token. true No
Sample Response:
Success 204 with no response
Errors
Failure 404 with proper error message
<Error>
<Code>keymanagement.service.invalid_refreshtoken</Code>
<Message>Invalid Refresh Token</Message>
<Contexts/>
</Error>

Error Codes:
1. keymanagement.service.application_not_approved
2. keymanagement.service.invalid_refresh_token
3. keymanagement.service.access_refresh_approve_failed

Help or comments?

  • Something's not working: See Apigee Support
  • Something's wrong with the docs: Click Send Feedback in the lower right.
    (Incorrect? Unclear? Broken link? Typo?)