Exchange a refresh token for a new subscriber access token
Exchanges a valid refresh token for a new subscriber access token and a new refresh token. The new access token is valid for 2 hours, and the new refresh token is valid for 2 hours and 5 minutes.
#### Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_, _Messaging_, _Fax_, or _Video_.
[Learn more about API scopes](/docs/platform/your-signalwire-api-space).
Authentication
AuthorizationBasic
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing
the word Basic followed by a space and a base64-encoded string of project_id:token.
The project ID will be used as the username and the API token as the password.
Example:
```
Authorization: Basic base64(project_id:token)
```
Request
This endpoint expects an object.
refresh_token
The refresh token previously issued alongside a subscriber access token. This token is used to request a new access token.
Response
The request has succeeded and a new resource has been created as a result.
token
A newly generated subscriber access token, valid for 2 hours.
refresh_token
A new refresh token, valid for 2 hours and 5 minutes.