1. Generate access token from refresh token
POST {{host}}/oauth/token
This endpoint is used to generate a new access token if the previous one has expired. The refresh token is initially generated when creating a new user or when linking an existing TransferWise account.
Request Body
[{"name"=>"grant_type", "value"=>"refresh_token", "datatype"=>"string"}, {"name"=>"refresh_token", "value"=>"{{refresh}}", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"access_token":"{access_token}","token_type":"bearer","refresh_token":"{refresh_token}","expires_in":43199,"scope":"transfers","created_at":"2020-09-16T10:19:33.145563Z"}