Getting Token Details
You can retrieve the details for a specified token. Call the /token/{tokenName} endpoint using GET, where you pass the token name as a path parameter. Note that the token name is case sensitive.
Item |
Description |
URI |
/uar/v1/token/{tokenName} |
Method |
GET |
Query parameters |
N/A |
Request body |
N/A |
Response codes |
200: Success |
Sample Response
The following shows a sample response with details of the token (response code 200, Success):
{
"statusMessage": "Successful",
"responseObject": {
"expiryStr": "10m",
"tokenExpiryMillis": 1716900570355,
"tokenIssueMillis": 1716899970355,
"tokenName": "demo",
"tokenCreator": "systemadmin@mycompany.com",
"tokenType": "NORMAL",
"username": "systemadmin@mycompany.com"
},
}