Lock & Unlock API
The Smartcar platform lets your mobility app issue, manage, and share digital car keys for your customers.
Lock or unlock a vehicle’s doors.
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"
}
Offer contactless rentals featuring digital keys directly in your car sharing app.
Learn more about car sharingOffer contactless services by letting customers share a digital car key with your technicians.
Learn more about on-demand servicesSmartcar is the easiest way to integrate mobility apps and services with cars.