User launches Connect
User logs in to their vehicle's connected services account
REDIRECT_URI
. For more details on how to configure a custom-scheme REDIRECT_URI
, see our API reference.Smartcar redirects the user back to your application
Call your back-end service
code
to its back-end service.Fetch your first tokens
code
for an ACCESS_TOKEN
, your application makes a request to the Smartcar API. This request must contain the authorization code along with your application’s CLIENT_ID
and CLIENT_SECRET
.Store your tokens
ACCESS_TOKEN
and a REFRESH_TOKEN
. These should be stored in your application’s database.Make an API request
ACCESS_TOKEN
, your application can now make API requests to the user’s vehicle.