API Platform Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}
API Resource Path: /oauth2/accesstokens/{access_token}
Gets details of a specific Access Token
Verb: GET
Auth: Basic AuthSample Response:
{
"app" : "app1",
"attributes" : [ ],
"clientId" : "fGytmxA5UDajPMdOA5E3bebiBOBPikOT",
"createdAt" : 1343036540877,
"createdBy" : "defaultUser",
"expiresAt" : 1343038340877,
"grantType" : "password",
"issuedAt" : 1343036540877,
"lastModifiedAt" : 1343036540877,
"lastModifiedBy" : "defaultUser",
"refreshCount" : 0,
"refreshToken" : "Nn5Pt2eO",
"scope" : "",
"status" : "approved",
"token" : "25poPXCPOw43s0hJBn6tQYnUb5KF",
"tokenType" : "BearerToken"
}
Response Payload Elements:
| Name | Description |
|---|---|
| app | Name of the app for which the access token was created |
| attributes | Name'value pairs used to extend the default access token profile |
| clientId | Consumer secret of the app |
| createdAt | Unix time when the access token was created |
| createdBy | User name of the Apigee user who created the access token |
| expiresAt | Unix time when the access token expires |
| grantType | Grant type of the access token: auth code, client_credential, refresh token |
| issuedAt | Unix time when the access token was issued |
| lastModifiedAt | Unix time when the access token was last modified |
| lastModifiedBy | User name of the Apigee user who last modified the access token |
| defaultUser | The default user of the access token |
| refreshCount | Number of times the token has been refreshed |
| refreshToken | The value of the refresh token |
| scope | Comma separated list of scopes included int he token |
| status | Status of the access token: approved, revoked, expired. |
| token | Value of the access token |
| tokenType | Token type: bearer |
Failure 404 with proper error message
{
"code" : "keymanagement.service.AccessTokenDoesntExists",
"message" : "Access Token doesnt exists",
"contexts" : [ ]
}
Error Codes:
1. keymanagement.service.oauth_access_token_doesnot_exist
Last updated:
about 1 month ago