A refresh token is invalidated 1 minute after use. Please ensure you’re persisting both the newly minted access and refresh token.
Failure to do so will require the user to go through Connect again after the access token has expired.
Request
HeadersThe HTTP Authorization header using the Basic authentication scheme.To construct the Authorization header value:
- Join your
client_id
andclient_secret
with a single colon (:
). - Base64-encode the resulting string:
base64({client_id}:{client_secret})
- Prepend
Basic
(with a trailing space) to the encoded string.
Basic bXktY2xpZW50LWlkOm15LWNsaWVudC1zZWNyZXQ=
Must be set to
application/x-www-form-urlencoded
, matching the format of the request body.A valid HTTP User Agent value.
This value must be set to
refresh_token
The refresh token received in the response with the access token from an auth code exchange
or prior token refresh.
Response
access_token
A string representing an access token used to make requests to the Smartcar API.
expires_in
The number of seconds the access token is valid for. This is always set to 7200 (2 hours)
refresh_token
A string representing a refresh token, which is used to renew access when the current access token expires. The refresh token expires after 60 days.
token_type
Always set to
Bearer
.