Start a tutorial
Learn how to configure your first application and connect a vehicle in under 10 minutes.
Read How-To Guides
Solve common implementation challenges with step-by-step instructions.
Connecting Vehicles
Learn how to use our patented consent management authorization flow, to connect vehicles to your application.
Help Center
Visit our Help Center for FAQs, troubleshooting tips, and to contact support.
Integrations
Dive deep into our Smartcar integrations and learn how to connect with various services.
Browse our SDKs
Connect with other developers, share ideas, and get help.
Prerequisites
Before you begin, you’ll need:- A Smartcar Account
- Your Application ID and Secret (found in the Smartcar Dashboard)
- An application with a redirect URI (e.g. a local development server or staging environment)
1
Step 1: Register & Configure Your Application
- Log in or sign up via the Smartcar Dashboard
- Fill in your app name, description, and redirect URI in the configuration page of the dashboard.
- Copy your
Client ID
andClient Secret
in a safe location. These credentials identify your app during the authorization process. Do not commit your client secret to version control. - Select the data you want to access from vehicles by choosing the data signals (e.g.
odometer
,location
, etc.).
2
Step 2: Start Connecting Vehicles via Smartcar Connect
Smartcar Connect is an OAuth 2.0 consent flow that lets your users link their vehicles securely.The vehicle access tab in the Smartcar Dashboard will generate a Connect URL for you. You can also generate the URL programmatically using one of our SDKs.This will take your user to the Smartcar Connect screen to authorize access.
3
Step 3: Exchange Authorization Code for Access Tokens
After the user grants access, Smartcar redirects back to your app with an authorization code. This is where the redirect URI you configured earlier comes into play.Use this code in your backend to exchange for access and refresh tokens:You’ll receive:
accessToken
: used to make API callsrefreshToken
: used to obtain new access tokens
4
Step 4: Configure an Integration To Receive Vehicle Data
Our recommended method is to use webhooks, allowing you to choose triggers (e.g. location changes, battery state of charge changes) and the data to be sent upon those triggers. For lower frequency data needs, you can also use our REST API to fetch data at lower intervals (e.g. once a week/month). Once you’ve configured a webhook, you’ve successfully integrated Smartcar and retrieved vehicle data.