Skip to content

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.

  1. Enter a name — it identifies the key in the list, e.g. "CRM" or "Kiosk".
  2. Tick the permissions:
    • Bookings — list, create, change and cancel bookings;
    • Control — light, fan and lock of the cabins.
  3. 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 ​

Addresshttps://<your WorkBooth interface address>/api/v1
Keyheader Authorization: Bearer wbk_… or X-Api-Key: wbk_…
FormatJSON, Content-Type: application/json
TimeISO 8601 with a time zone: 2026-09-15T10:00:00+03:00; responses are in UTC (…Z)
Limit120 requests per minute per key; above the limit — 429

A response is a data object:

json
{ "data": { "id": 12, "serial": "555", "name": "Meeting room 3" } }

An error is an error object with a code and a description:

json
{ "error": { "code": "slot_taken", "message": "The time overlaps another booking" } }
HTTPerror.codeMeaning
401unauthorizedno key, a wrong or revoked key
403forbiddenthe key lacks the required permission
404not_foundno such cabin or booking in your company
409cabin_offlinethe cabin is not connected — the command was not sent
409slot_takenthe time overlaps another booking
409booking_closedthe booking is already completed, cancelled or closed as a no-show
422invalid_booking, invalid_windowwrong time or listing window
422—invalid fields: {"message": …, "errors": {"field": ["reason"]}}
429—the request limit is exceeded
504no_responsethe 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 ​

bash
curl https://dashboard.example.com/api/v1/cabins \
  -H "Authorization: Bearer $WORKBOOTH_KEY"
json
{
  "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.

FieldValues
onlinethe cabin is connected to the server
modesleep, wait, work, work_api — see How a cabin works
occupiedsomeone is inside (or the cabin is held by a booking)
light.brightnessbrightness, %
light.lampthe lit lamp: top or front
fan.speedfan speed, %
entry_signthe entrance sign: free or busy
lockthe last lock command since the cabin started: locked, unlocked; null — no commands yet
firmwarefirmware 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:

bash
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"}'
FieldValues
brightness0–100, %
lamptop — the top lamp, front — the front lamp
json
{ "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 ​

bash
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"
  }'
FieldRequiredWhat it is
starts_at, ends_atyesstart and end; the end is after the start
subjectnosubject, up to 255 characters
organizer_emailnoorganizer e-mail
external_idnoyour booking identifier, up to 200 characters

A 201 response with the booking:

json
{
  "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 ​

RequestWhat 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 ​

StatusMeaning
confirmedthe booking exists, the meeting has not started
activesomeone is in the cabin
completedthe meeting took place
no_shownobody came
cancelledcancelled
conflicta 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 ​

python
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"])

© Modular Acoustic Solutions · WorkBooth