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

Live control of vehicle doors

Live control of vehicle doors

Compatible with 14 brands

Compatible with 14 brands

API SDKs in Node.js, Python, and Java

API SDKs in Node.js, Python, and Java

No aftermarket hardware

No aftermarket hardware

Use cases

Peer-to-peer car sharing

On-demand car wash

To make pickups easier for vehicle owners and renters, let your customers unlock their rental cars directly via your app.

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

To make pickups easier for vehicle owners and renters, let your customers unlock their rental cars directly via your app.

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