Lock & unlock API

Digital key sharing made easy

Enable your customers to lock and unlock their vehicles directly via your application.

Action

Lock or unlock a vehicle's doors.

Node

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
const smartcar = require('smartcar');

// Get all vehicles associated with this access token
const {vehicles} = await smartcar.getVehicleIds("<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 response from Smartcar
{
  "status": "success"
}

Product features

API SDKs in Node.js, Python, Java, and Go

API SDKs in Node.js, Python, Java, and Go

Compatible with 15 brands

Compatible with 15 brands

Access to live data

Access to live data

Batch requests

Batch requests

No aftermarket hardware

No aftermarket hardware

Use cases

Peer-to-peer car sharing

On-demand car wash

Simplify pick-ups and drop-offs by letting vehicle owners share a digital car key with renters.

Let your car wash technicians unlock your customers' vehicles for interior detailing. No need to meet and exchange car keys.

Peer-to-peer car sharing

Simplify pick-ups and drop-offs by letting vehicle owners share a digital car key with renters.

On-demand car wash

Let your car wash technicians unlock your customers' vehicles for interior detailing. No need to meet and exchange car keys.

Ready to get started?

Get Started

Ready to get started?

Get Started