Refresh access token
POST {{baseUrl}}/oauth/token
Exchange a refresh token for a new access token.
The previous refresh_token
will be revoked on the first usage of the new access_token
.
The expires_in
value is provided in seconds from when the access_token
was generated.
Request Body
{"client_id"=>"<string>", "client_secret"=>"<string>", "grant_type"=>"<string>", "refresh_token"=>"<string>", "redirect_uri"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Gusto-API-Version | string | Determines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"access_token":"737HdeXfIqgx-NfaUFRuhV7JDe6ns6ptanJSMuQzjlc","token_type":"bearer","expires_in":7200,"refresh_token":"iEjL96L9Pndwmi-xVX3Q-xbrvvhnjHYGX87sopgGJ8E","scope":"ach_transactions:read benefits:read companies:read","created_at":"2023-09-12T16:42:25.000-07:00"}