API
The WorkBooth API lets your systems work with your company's cabins: read their state, manage bookings, control light, ventilation and lock. For example, a CRM creates a booking when a client signs up, and a reception kiosk shows which cabins are free.
For events WorkBooth sends to your system by itself, see Webhooks.
API keys
Keys are issued by a company administrator: Profile → API & webhooks, the API keys block.
- Enter a name — it identifies the key in the list, e.g. "CRM" or "Kiosk".
- Tick the permissions:
- Bookings — list, create, change and cancel bookings;
- Control — light, fan and lock of the cabins.
- Press Create key and copy the key right away. It is shown once: the server keeps only its fingerprint and cannot show the key again.
Cabin state (GET /cabins) is available to any key. The key list shows the beginning of each key, its permissions, creation date and last use. Revoke disables a key at once: requests with it get 401.
Keep the key like a password: in environment variables or a secrets manager, not in code and not in the browser. One key per system — so you can revoke a key without stopping the other integrations.
Requests
| Address | https://<your WorkBooth interface address>/api/v1 |
| Key | header Authorization: Bearer wbk_… or X-Api-Key: wbk_… |
| Format | JSON, Content-Type: application/json |
| Time | ISO 8601 with a time zone: 2026-09-15T10:00:00+03:00; responses are in UTC (…Z) |
| Limit | 120 requests per minute per key; above the limit — 429 |
A response is a data object:
{ "data": { "id": 12, "serial": "555", "name": "Meeting room 3" } }An error is an error object with a code and a description:
{ "error": { "code": "slot_taken", "message": "The time overlaps another booking" } }| HTTP | error.code | Meaning |
|---|---|---|
| 401 | unauthorized | no key, a wrong or revoked key |
| 403 | forbidden | the key lacks the required permission |
| 404 | not_found | no such cabin or booking in your company |
| 409 | cabin_offline | the cabin is not connected — the command was not sent |
| 409 | slot_taken | the time overlaps another booking |
| 409 | booking_closed | the booking is already completed, cancelled or closed as a no-show |
| 422 | invalid_booking, invalid_window | wrong time or listing window |
| 422 | — | invalid fields: {"message": …, "errors": {"field": ["reason"]}} |
| 429 | — | the request limit is exceeded |
| 504 | no_response | the cabin did not confirm the command within 5 seconds |
OpenAPI description: workbooth-api.openapi.json — for client generation and importing into Postman.
Cabins
Cabin list
curl https://dashboard.example.com/api/v1/cabins \
-H "Authorization: Bearer $WORKBOOTH_KEY"{
"data": [
{
"id": 12,
"serial": "555",
"name": "Meeting room 3",
"type": "one",
"address": "Floor 3",
"online": true,
"last_seen_at": "2026-09-15T07:12:30Z",
"mode": "work",
"occupied": true,
"light": { "brightness": 80, "lamp": "top" },
"fan": { "speed": 30 },
"entry_sign": "busy",
"lock": null,
"firmware": "X.Y.Z"
}
]
}GET /api/v1/cabins/{id} — one cabin in the same form.
| Field | Values |
|---|---|
online | the cabin is connected to the server |
mode | sleep, wait, work, work_api — see How a cabin works |
occupied | someone is inside (or the cabin is held by a booking) |
light.brightness | brightness, % |
light.lamp | the lit lamp: top or front |
fan.speed | fan speed, % |
entry_sign | the entrance sign: free or busy |
lock | the last lock command since the cabin started: locked, unlocked; null — no commands yet |
firmware | firmware version |
A field is null if the cabin has not reported the value yet.
Control
Requires the Control permission. The command goes to the cabin and the server waits for a confirmation for up to 5 seconds: 200 — the cabin carried it out, 409 cabin_offline — the cabin is not connected, 504 no_response — it did not answer.
Live control lasts until the cabin's next mode change: when someone enters or leaves, the cabin returns to its mode levels.
Light
POST /api/v1/cabins/{id}/light — brightness, lamp or both:
curl -X POST https://dashboard.example.com/api/v1/cabins/12/light \
-H "Authorization: Bearer $WORKBOOTH_KEY" -H "Content-Type: application/json" \
-d '{"brightness": 60, "lamp": "front"}'| Field | Values |
|---|---|
brightness | 0–100, % |
lamp | top — the top lamp, front — the front lamp |
{ "data": { "cabin": { "id": 12, "serial": "555", "name": "Meeting room 3" }, "applied": { "brightness": 60, "lamp": "front" } } }Fan
POST /api/v1/cabins/{id}/fan with the body {"speed": 70} — speed 0–100 %.
Lock
POST /api/v1/cabins/{id}/lock — lock, POST /api/v1/cabins/{id}/unlock — unlock. No body needed. Not every cabin model has a lock.
Bookings
Requires the Bookings permission. Bookings through the API follow the same rules as bookings from the interface: the company booking policy, overlap checks, sync with connected calendars. Their source is api.
A cabin's bookings
GET /api/v1/cabins/{id}/bookings?from=…&to=… — bookings overlapping the window. Without parameters — from the start of today for 7 days; the window is at most 400 days.
Creating a booking
curl -X POST https://dashboard.example.com/api/v1/cabins/12/bookings \
-H "Authorization: Bearer $WORKBOOTH_KEY" -H "Content-Type: application/json" \
-d '{
"starts_at": "2026-09-15T14:00:00+03:00",
"ends_at": "2026-09-15T14:30:00+03:00",
"subject": "Client call",
"organizer_email": "anna@example.com",
"external_id": "crm-7781"
}'| Field | Required | What it is |
|---|---|---|
starts_at, ends_at | yes | start and end; the end is after the start |
subject | no | subject, up to 255 characters |
organizer_email | no | organizer e-mail |
external_id | no | your booking identifier, up to 200 characters |
A 201 response with the booking:
{
"data": {
"id": 3051,
"cabin": { "id": 12, "serial": "555", "name": "Meeting room 3" },
"starts_at": "2026-09-15T11:00:00Z",
"ends_at": "2026-09-15T11:30:00Z",
"status": "confirmed",
"source": "api",
"subject": "Client call",
"organizer_email": "anna@example.com",
"external_id": "crm-7781",
"created_at": "2026-09-15T07:20:11Z"
}
}Retrying a request
Send external_id. If the request is repeated (timeout, network failure), the server returns the booking already created with code 200 instead of creating a second one. external_id is unique within your company.
Time already taken — 409 slot_taken.
Reading, changing, cancelling
| Request | What it does |
|---|---|
GET /api/v1/bookings/{id} | the booking |
PATCH /api/v1/bookings/{id} | change any of starts_at, ends_at, subject |
DELETE /api/v1/bookings/{id} | cancel; the event is removed from connected calendars |
Only a booking that still holds its slot (pending, confirmed, active) can be changed or cancelled. For the rest — 409 booking_closed.
Statuses
| Status | Meaning |
|---|---|
confirmed | the booking exists, the meeting has not started |
active | someone is in the cabin |
completed | the meeting took place |
no_show | nobody came |
cancelled | cancelled |
conflict | a calendar event landed on a taken slot |
How the server moves bookings between statuses — Bookings. Webhooks tell you about changes at once, without polling.
Python example
import os
import requests
API = "https://dashboard.example.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['WORKBOOTH_KEY']}"}
# free cabins that are online
cabins = requests.get(f"{API}/cabins", headers=HEADERS, timeout=10).json()["data"]
free = [c for c in cabins if c["online"] and not c["occupied"]]
# book the first one for half an hour
r = requests.post(
f"{API}/cabins/{free[0]['id']}/bookings",
headers=HEADERS,
json={
"starts_at": "2026-09-15T14:00:00+03:00",
"ends_at": "2026-09-15T14:30:00+03:00",
"subject": "Meeting",
"external_id": "crm-7782",
},
timeout=10,
)
if r.status_code == 409:
print("time is taken")
else:
r.raise_for_status()
print("booking", r.json()["data"]["id"])