Getting started
lockapi gives you one REST API over multiple smart-lock vendors. Every tenant account has two independent sets of API keys — test and live — so you can build your entire integration against realistic fake devices before touching a real lock.
1. Create an account and an API key
Register in the dashboard, then create an API key. Test-mode keys look like sk_test_... and live-mode keys look like sk_live_... — the prefix is what the API uses to route every request, so a test key can never touch live data and vice versa.
2. Call the API
Every request is authenticated with a bearer token:
curl https://api.lockapi.dev/v1/devices \
-H "Authorization: Bearer sk_test_..."3. In test mode, everything is simulated
A test-mode key routes every call to a deterministic mock lock provider — connecting an account returns 2-3 fake devices instantly, no vendor OAuth redirect required. See Connect → devices → codes for the full flow.