Creating an Access Token

You can create an access token for yourself in the Command Center to execute REST APIs. While creating an access token you must provide a display name, expiry date, and scope for the access token.

Important

  • An access token functions like a password. You must save it for your records and not share it with anybody.

  • If you lose an access token, it cannot be retrieved.

After creating an access token, you can use it in your API requests as a Bearer Token.

Procedure

  1. From the navigation pane, go to Manage > Security.

    The Security page appears.

  2. Click the Users tile.

    The Users page appears.

  3. In the User name column, click your user name.

    The user page appears.

  4. On the Access tokens tab, click Add token.

    The Add token dialog box appears.

  5. Enter the name, expiry date and scope for the token.

    By default, an access token expires after 2 minutes and the scope is set to include all api.commvault.com endpoints.

    • To set a different scope, in the Scope list, select Custom and enter specific endpoints (for example, /Subclient).

      Note

      To list multiple endpoints, enter each endpoint on a new line.

  6. Click SUBMIT.

    A token appears.

  7. Copy and save the token for your future reference.

Loading...