Refresh token is a token used to refresh an expired or lost access token.
To refresh an access token, send the HTTP POST request to the /api/oauth2/token path. In the request body, specify the following parameters:
Parameter
Value
Description
grant_type
refresh_token
Authorization grant type
refresh_token
<Refresh token>
Previously saved refresh token
A successfully completed operation returns the 200 response code and a new pair of tokens in the response body.
Tip
If you have lost a refresh token, you can log in again under the same user account and get a new pair of tokens.
Example
To refresh an access token, send the HTTP POST request to the api/oauth2/token path. In the x-api-version header, specify the current revision of the Veeam Backup & ReplicationREST API.
In the body of the request, specify the refresh_token grant type and the refresh token itself.
Request
POST https://enterprise01.tech.local:9419/api/oauth2/token