product

Lock and unlock API

Smartcar's lock and unlock API endpoints allow app developers to remotely control a vehicle's doors using simple HTTP requests. Lock and unlock cars of any vehicle brand, anytime, hardware-free.

Meet our lock & unlock API

Our lock and unlock API endpoints let your app users share a digital key to their vehicle, regardless of the make or model. The best part? You won't need to use any aftermarket hardware like special key FOBs, Bluetooth devices, or OBD2 dongles. Start controlling car doors via your app today - it's as easy as a few lines of code!

Features

Compatible with 13 brands

Compatible with 13 brands

SDKs in six languages

SDKs in six languages

Self-service experience

Self-service experience

No aftermarket hardware

No aftermarket hardware

Reliable customer support

Reliable customer support

Scalable pay-as-you-go pricing

Scalable pay-as-you-go pricing

Our SDKs

Our RESTful API is fast, reliable, and easy to use with every tech stack. No matter which language you used to build your mobile or web app, our documentation includes six SDKs and several integration guides. Here is a sneak peek of how the lock and unlock API endpoints looks in our back-end SDKs:

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
const smartcar = require('smartcar'); 
 
// List all vehicles associated with this access token
const {vehicles} = await smartcar.getVehicleIds("<access-token>");
 
// Use the first vehicle
const vehicle = new smartcar.Vehicle(vehicles[0], "<access-token>");
 
// Lock the vehicle
await vehicle.lock();
 
// Unlock the vehicle
await vehicle.unlock();

Use cases

Peer-to-peer car sharing

Mobile car wash

Use Smartcar's lock and unlock API endpoints for a more seamless user experience in your peer-to-peer car sharing app. Our API lets vehicle owners share a digital car key with renters. During pickup, renters can unlock their rental vehicle via your app, without having to meet and exchange keys with the vehicle owner. Drop-off has never been easier, with renters being able to park and lock the vehicle via your app, and vehicle owners unlocking their car remotely at their convenience.

Use Smartcar's lock and unlock API endpoints to make mobile car washing easier for your users and your technicians. Our API lets your app users share a digital key to their vehicle with your car wash technician. Without the two having to meet and exchange keys, your technician will be able to unlock your user's car via your app for interior detailing. Once they are done, they can lock it back up and leave. This way, Smartcar makes mobile car washing faster and more convenient than ever before.

Peer-to-peer car sharing

Use Smartcar's lock and unlock API endpoints for a more seamless user experience in your peer-to-peer car sharing app. Our API lets vehicle owners share a digital car key with renters. During pickup, renters can unlock their rental vehicle via your app, without having to meet and exchange keys with the vehicle owner. Drop-off has never been easier, with renters being able to park and lock the vehicle via your app, and vehicle owners unlocking their car remotely at their convenience.

Mobile car wash

Use Smartcar's lock and unlock API endpoints to make mobile car washing easier for your users and your technicians. Our API lets your app users share a digital key to their vehicle with your car wash technician. Without the two having to meet and exchange keys, your technician will be able to unlock your user's car via your app for interior detailing. Once they are done, they can lock it back up and leave. This way, Smartcar makes mobile car washing faster and more convenient than ever before.