Obtaining List of All Refresh Tokens Owned by Caller
Flexera provides an API that allows each user to manage their own API Refresh Tokens.
tip
Requests to this API must include a valid Access Token in the Authorization header for authentication. For more information, refer to Generating a Refresh Token.
To obtain a list of all refresh tokens owned by this caller
- Enter the following command to request a list all API refresh tokens owned by the caller:
- curl -s -H "Authorization: Bearer
<your access token>" https://api.flexera.com/iam/v1/refresh-tokens | jq .
- curl -s -H "Authorization: Bearer
- The response will look similar to the following:
- [
- {
- "
createdAt": "2020-02-27T19:21:35Z", - "
expiresAt": "2021-09-29T23:45:36Z", - "
id": "<refresh token 1 ID>" - },
- {
- "
createdAt": "2020-03-16T23:17:46Z", - "
expiresAt": "2021-03-16T23:17:46Z", - "
id": "<refresh token 2 ID>" - }
- ]
- The following table explains the breakdown of the response:
| Field | Description |
|---|---|
| id | The unique identifier for the token. |
| createdAt | Indicates the date the token was created. |
| expiresAt | Indicates the date the token will expire, which will always be one year after it was last used. |