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

KeyDatatypeRequiredDescription
X-Gusto-API-VersionstringDetermines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;access_token&quot;:&quot;737HdeXfIqgx-NfaUFRuhV7JDe6ns6ptanJSMuQzjlc&quot;,&quot;token_type&quot;:&quot;bearer&quot;,&quot;expires_in&quot;:7200,&quot;refresh_token&quot;:&quot;iEjL96L9Pndwmi-xVX3Q-xbrvvhnjHYGX87sopgGJ8E&quot;,&quot;scope&quot;:&quot;ach_transactions:read benefits:read companies:read&quot;,&quot;created_at&quot;:&quot;2023-09-12T16:42:25.000-07:00&quot;}