Skip to main content

Revoking an API Refresh Token

This section describes two ways you can revoke an access token:

Revoking a Refresh Token Using the Flexera One User Interface

This section describes how revoke a refresh token from within Flexera One.

To revoke a refresh token from within Flexera one:

  1. In a web browser, access either of the following URLs based on the server location of your account:
  2. The Flexera One login screen appears. Log in to your account.
  3. Click the profile icon in the top right corner of the page and then select User Settings .
  4. On the left menu, click API Credentials .
  5. A list of non-expired API refresh tokens that you generated are listed. Any of the three columns ( ID , Created On , Expires On ) can be filtered to help you find the ID of the refresh token that you want to revoke.
    • If no refresh tokens appear, this means that previous refresh tokens you have created have expired, or you did not create any refresh tokens using your current Flexera One account. Refresh tokens expire one year after their last use date. If you keep using a refresh token, the expiry date resets accordingly.

  6. Locate the ID of the refresh token you want to revoke and then click the delete button (trash can icon) at the far right if its row. A confirmation screen appears. Click Delete .

Revoking a Refresh Token Using the Command Line

This section shows how to revoke a refresh token using a command line.

tip

To do the steps shown in this section, you must know the ID of the refresh token you are going to revoke. For help refer to Obtaining List of All Refresh Tokens Owned by Caller. You can also view a list of your refresh token IDs as shown in the previous section, Revoking a Refresh Token Using the Flexera One User Interface.

To revoke a token, you can use the following command:

curl -s -X DELETE -H "Authorization: Bearer <your access token>" https://api.flexera.com/iam/v1/refresh-tokens/<refresh token 2 ID>

To revoke all API refresh tokens owned by the caller:

curl -s -X DELETE -H "Authorization: Bearer <your access token>" https://api.flexera.com/iam/v1/refresh-tokens
note

Revoked refresh tokens will no longer appear in the refresh token API.