Lock & Unlock API

Unlock cars from your app

The Smartcar platform lets your mobility app issue, manage, and share digital car keys for your customers.

Lock or unlock

Lock or unlock a vehicle’s doors.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
const smartcar = require('smartcar');

// Get all vehicles associated with this access token
const {vehicles} = await smartcar.getVehicles("<access-token>");

// Construct a new vehicle instance using the first vehicle's id
const vehicle = new smartcar.Vehicle(vehicles[0], "<access-token>");

// Lock the vehicle
await vehicle.lock();

// Unlock the vehicle
await vehicle.unlock();
// Example http response from Smartcar
{
  "status": "success"
}
See the API docs

Product features

Compatible with 36 car brands

Compatible with 36 car brands

Friendly user consent flow

Friendly user consent flow

Works on 2015 and newer vehicles

Works on 2015 and newer vehicles

Trusted & secure

Trusted & secure

Trigger live actions

Trigger live actions

SDKs for Go, Java, Node.js, Python, and Ruby

SDKs for Go, Java, Node.js, Python, and Ruby

Learn more about Smartcar’s APIs

Related industries

Peer-to-peer car sharing

Offer contactless rentals featuring digital keys directly in your car sharing app.

Learn more about car sharing

On-demand services

Offer contactless services by letting customers share a digital car key with your technicians.

Learn more about on-demand services

What we’re building

Latency and frequency of data availability may vary between makes and models.