Sojolock API
Pass bookings from your own system and let Sojolock handle the PIN codes. JSON over HTTPS, with an API key per customer.
The basics
Base URL: https://api.sojolock.com. Create an API key under Settings and send it as Authorization: Bearer slk_…. 300 calls per minute per key are allowed.
Create or update a property
PUT /v1/properties/{ref}
{ "name": "Villa Sunyi", "timezone": "Asia/Makassar", "checkin_time": "14:00", "checkout_time": "11:00" }Pass a booking (create or update)
POST /v1/bookings
{
"property": "villa-sunyi",
"external_id": "SD-10442",
"guest_name": "Anna de Vries",
"guest_email": "anna@example.com",
"checkin": "2026-10-14T15:00:00+08:00",
"checkout": "2026-10-17T11:00:00+08:00"
}Sending the same external_id again updates the booking; the codes are adjusted. Without a time zone in the time we use the property’s.
Get the status
GET /v1/bookings/{external_id}
{ "status": "active", "code_ready": true, "guest_link": "https://open.sojolock.com/…", "locks": [{ "name": "Front door", "status": "active" }] }With ?include=code you also get the code itself once it is active.
Cancel
DELETE /v1/bookings/{external_id}Other
GET /v1/pingtests the keyGET /v1/propertieslist of properties
Errors come back as JSON with error and an HTTP status (401 unknown key, 422 invalid data, 429 too many calls).
Who the API is for
The API is meant for booking systems, channel managers and custom software that want to manage access per booking. You pass the booking with guest details and check-in and check-out time; Sojolock prepares the code or digital key and removes it after departure.
Each customer creates their own API key in their own environment. Keys are separate per customer and you can always revoke them. Do you want to become a partner as a booking system or lock brand? See the partner pages.
Bookings you pass on get a guest link, and you can query the status of each booking. That way you can show in your own system whether the code is ready, without having to talk to lock brands yourself.