Getting Authorization Tokens

The Veeam Service Provider Console REST API authorization with Swagger UI involves the following procedures:

  1. Obtain an access token:
  1. On the VSPC REST page, expand the Authentication resource and click POST /token.
  2. Click the Try it out button.
  3. In the username and password fields, specify the credentials of a user with the privileges of a user that has access to the Veeam Service Provider Console REST API.

Providing Credentials

  1. Click Execute.

Wait for the response from the server. A successfully completed operation returns the 200 OK response code and an access token in the response body.

Response Containing Tokens

  1. Copy the access token.
  2. Click the Authorize button. The Available authorizations window will open.
  3. In the Value field, type Bearer and the space character, then paste the access token.
  4. Click Authorize.

Obtaining the Tokens

  1. When the access token expires, use the refresh token:
  1. On the VSPC REST 3.0 page, expand the Authentication resource and click POST /token.
  2. Click Try it out.
  3. In the grant_type drop-down list, select refresh_token.
  4. In the refresh_token field, insert the refresh token saved locally.
  5. Click Execute.

Wait for the response from the server. A successfully completed operation returns the 200 OK response code and a new pair of tokens in the response body.

  1. When you finish working with the Veeam Service Provider Console REST API:
  1. Click the Authorize button. The Available authorizations window will open.
  2. Click the Logout button.

Page updated 7/16/2024

Page content applies to build 8.1.0.21999