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
{
"acct": "string",
"allowedScopes": {
"generalScopes": [
"string"
],
"organizationScopes": {
"allPermissions": false,
"allRoles": false,
"keptInToken": [
"string"
],
"permissions": [
{
"permissionId": "string",
"resources": [
"string"
]
}
],
"roles": [
{
"name": "string",
"resource": "string"
}
]
},
"servicesScopes": [
{
"allPermissions": false,
"allRoles": false,
"keptInToken": [
"string"
],
"permissions": [
{
"permissionId": "string",
"resources": [
"string"
]
}
],
"roles": [
{
"name": "string",
"resource": "string"
}
],
"serviceDefinitionId": "string"
}
]
},
"createdAt": 0,
"deactivated": false,
"deactivatedUpdatedBy": "string",
"deactivatedUpdatedOn": 0,
"domain": "string",
"expiresAt": 0,
"idpId": "string",
"lastUsedAt": 0,
"orgId": "string",
"scope": [
"string"
],
"token": "string",
"tokenId": "string",
"tokenName": "string",
"userId": "string",
"username": "string"
}
The identifier of the user, configured to log in to the Identity provider.
The allowed general, organization and service scopes of access.
The timestamp the token was created at (measured in number of seconds since 1/1/1970 UTC).
deactivated
The user who updated the token's isDeactivated state
The timestamp the token's isDeactivated was last updated (measured in number of seconds since 1/1/1970 UTC).
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 identifier of the identity provider.
The timestamp the token was last used (measured in number of seconds since 1/1/1970 UTC).
Unique identifier (GUID) of the organization.
The scope of access needed for the token
The value of the API token.
The unique identifier of the API token.
The name of the API token.
The unique identifier of the user, on behalf of which the token was issued.
Deprecated. The username of the user to whom the api token belongs
The requested resource could not be found
{
"cspErrorCode": "string",
"errorCode": "string",
"message": "string",
"moduleCode": 0,
"requestId": "string",
"statusCode": 0
}
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The request could not be processed due to a conflict
{
"cspErrorCode": "string",
"errorCode": "string",
"message": "string",
"moduleCode": 0,
"requestId": "string",
"statusCode": 0
}
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
The user has sent too many requests
{
"cspErrorCode": "string",
"errorCode": "string",
"message": "string",
"moduleCode": 0,
"requestId": "string",
"statusCode": 0
}
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode
An unexpected error has occurred while processing the request
{
"cspErrorCode": "string",
"errorCode": "string",
"message": "string",
"moduleCode": 0,
"requestId": "string",
"statusCode": 0
}
cspErrorCode
errorCode
message
moduleCode
requestId
statusCode