Get Api Token Details Using POST
Get details of an unexpired org scoped API-token that was previously obtained via CSP web console.
Access Policy
Role | User Accounts | Service Accounts (Client Credentials Applications) |
---|---|---|
Anonymous | ✔️ | ✔️ |
The request body for getting API token contents.
{
"tokenValue": "string"
}
The value of the API token.
OK
"ApiTokenDetailsDto Object"
The name of the API token.
Unique identifier (GUID) of the organization.
The value of the API token.
The unique identifier of the user, on behalf of which the token was issued.
The identity provider (IdP) domain of the user.
The timestamp the token expires at (measured in number of seconds since 1/1/1970 UTC).
The timestamp the token was last used (measured in number of seconds since 1/1/1970 UTC).
The allowed general, organization and service scopes of access.
The user who updated the token's isDeactivated state
The identifier of the identity provider.
The timestamp the token's isDeactivated was last updated (measured in number of seconds since 1/1/1970 UTC).
deactivated
Deprecated. The username of the user to whom the api token belongs
The scope of access needed for the token
The identifier of the user, configured to log in to the Identity provider.
The timestamp the token was created at (measured in number of seconds since 1/1/1970 UTC).
The unique identifier of the API token.
The requested resource could not be found
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The request could not be processed due to a conflict
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
The user has sent too many requests
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
An unexpected error has occurred while processing the request
"CspErrorResponse Object"
cspErrorCode
message
errorCode
requestId
moduleCode
statusCode
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"tokenValue:"string"}' https://{api_host}/csp/gateway/am/api/auth/api-tokens/details