Local API
Control a running Q-Booth from your own app over HTTP, on the same PC or your local network: start events, capture, print, show QR and read the booth's state.
The Local API lets your own app control a running Q-Booth over HTTP — from the same PC or another device on your local network. Start an event, take the guest through the session, print, show the QR code, and read where the booth is at any moment.
Chapters (13)
- 0:00What the Remote Control does
- 0:10Settings › Advanced › Local API
- 0:19Port and password
- 0:26Allow other devices on the network, Save
- 0:35The Windows firewall prompt
- 0:43QR code: connect your phone
- 0:57The remote: online light and status
- 1:05Start event, start session, pick a template
- 1:28Shoot, retake, process
- 1:42Print and QR Share
- 1:48Home and Stop event
- 1:54Dimmed buttons and dialogs
- 2:03Next: the Local API for developers
Chapters (12)
- 0:00What you can build
- 0:13Turn it on: Settings › Advanced › Local API
- 0:26The password: Bearer token or X-QBooth-Key
- 0:35The built-in Sandbox
- 0:41Greyed-out commands and "available"
- 0:53202 accepted, then poll status
- 1:05Errors: 409 wrong_page
- 1:14A whole guest in four calls
- 1:28Nothing is bypassed
- 1:41Docs page and the API log
- 1:51No code? The Remote Control
- 1:58Wrap-up
This page documents API version 1.1. A booth reports the version it runs in status → app.apiVersion. The API works on the local network only — it is not reachable over the internet. Covers and results (version 1.1) are in Q-Booth since 5.9.4.0; a booth on 5.9.2.0 or 5.9.3.0 runs version 1.
Getting started
- Open the App Settings window, go to Advanced → Local API and turn on Turn on Local API. (If Advanced is missing, turn on Show all settings first.)
- Leave Password empty to have one made for you, or type your own. The default Port is
8730. - To call it from another device, turn on Allow other devices on the network. Windows may ask once to let Q-Booth through the firewall — allow it.
- Click Save Settings, then next to Sandbox click Open. The test page (the Sandbox) has a button for every command, and a Documentation link to the booth's own copy of this reference.
The address is http://<booth-pc>:8730 (http://localhost:8730 on the booth PC itself). Every command lives under /api/v1/.
curl http://localhost:8730/api/v1/status -H "Authorization: Bearer YOUR_PASSWORD"

409 wrong_page).No code needed to drive the booth from a phone: the Remote control is built on this API.
Want to see it in use? Local API examples has ready-made open-source apps on GitHub — a theme roulette, a travel globe, a talking avatar, and a kit to start your own.
Password
Every call except GET /api/v1/commands needs the password. Send it in any one of these ways:
Authorization: Bearer <password>(recommended)X-QBooth-Key: <password>?key=<password>on the URL, for tools that can only open a link
A wrong or missing password returns 401. Ten wrong tries in a minute from one address block it for a minute (429). The password is the operator's key — anyone who has it can control the booth, so keep it private.
One exception: the result file links from GET result carry the result id as t, which works in place of the password for that result's files only. See Results.
Replies
Reads use GET and answer 200 with the data:
{ "ok": true, "data": { ... } }
Actions use POST with a JSON body (or the query string). GET works too, for trigger tools that can only send GET. An accepted action answers 202 as soon as the booth has it — it does not wait for the photo, the print or the guest:
{ "ok": true, "accepted": "camera/capture" }
A refused call says why, with a code you can act on:
{ "ok": false, "error": { "code": "wrong_page", "message": "The booth is on the welcome page. This needs the Camera page." } }
The API never queues a command for later. If the booth is not in a state that allows it, it refuses straight away.
Status
GET /api/v1/status tells you where the booth is. Poll it to follow what happens after an action — every 300 to 1000 ms is fine. If the call can't connect at all, Q-Booth is not running (or the Local API is off).
{
"app": { "name": "QBooth", "version": "…", "apiVersion": "1.1" },
"event": { "id": "1781706869_H5A4", "name": "Wedding" },
"page": "camera",
"session": { "active": true, "templateId": "…", "templateName": "Strip 3" },
"camera": { "phase": "review", "shot": 3, "shots": 3, "captured": 3, "feed": "live", "retakesLeft": 1 },
"result": null,
"busy": { "dialog": false, "processing": false },
"available": ["camera/retake", "camera/process", "session/end", "event/stop"]
}
| Field | Meaning |
|---|---|
event | The running event, or null when the booth is not running one. |
page | none, welcome, survey, categoryPicker, templatePicker, input, camera or result. |
session | active once the guest has started (and paid, if the event charges), and the template picked so far. |
camera | Only on the Camera page. phase is liveIdle, counting, recording, capturing, reveal, shotDelay or review. retakesLeft is null when unlimited. |
result | Only on the Result page: which result is on screen (index), of how many (count), and the result id — when it changes, call GET result again. |
busy | A dialog on screen (payment, PIN, QR, a notice) or a photo being processed. Actions are refused while either is true. |
available | The actions the booth would accept right now — worked out by the same checks the actions run, so you can use it to enable or grey out your own buttons. |
A guest, step by step
A typical run, each step waiting in status for the page or phase shown:
| Call | Then wait for |
|---|---|
POST event/start {"id": "…"} | page: welcome |
POST session/start | page: templatePicker (or categoryPicker / survey, depending on the event) |
POST template/select {"index": 1} | page: camera, camera.phase: liveIdle, camera.feed: live |
POST camera/capture | camera.phase: review |
POST camera/process | page: result |
GET result | — (show the photos on your own screen) |
POST result/print | — |
POST session/end | page: welcome |
The API follows the same rules a guest meets. A survey, a form, a payment or a PIN shows on the booth screen exactly as it would after a tap, and the API does not answer them for the guest. Print limits and the print PIN apply too.
Commands
All paths start with /api/v1/. index is 1-based, in the order the guest sees the cards (top-left gallery first). Send id or index, not both; if both are sent, id is used.
| Command | Valid when | What it does |
|---|---|---|
GET status | Always | Where the booth is, and which actions it would accept. See Status. |
GET commands | Always, no password | The command list with the API version — what the test page is built from. |
GET events | Always | Every event on the PC: id, name, archived, templateCount, running. |
POST event/start{"id": "…"} | No event running, no dialog open, the event editor not open on another event or with unsaved changes | Starts the event, like its Launch button. A template warning, if any, shows on the booth screen first. |
POST event/stop | An event is running, no dialog, not processing | Ends the booth session and returns to the app. The exit PIN is not asked. |
GET templates?eventId=… (optional)?covers=1 (optional) | Always with eventId; without it, an event is running | The templates a guest can pick. With eventId: any saved event, running or not. Without it: the running event, and on its Template Picker (or a Welcome page with a template gallery) onScreen and index say which cards it shows. Add covers=1 for each card's cover picture — see Covers. |
GET categories?eventId=… (optional)?covers=1 (optional) | Always with eventId; without it, an event is running | The event's enabled categories, by the same eventId rule. On the running event's Category Picker, onScreen and index say which cards it shows. Add covers=1 for each card's cover picture — see Covers. |
POST session/start | Welcome page | The Start button. A Start PIN or payment, if the event has one, shows on the booth screen. |
POST session/end | Any page after Welcome | The Home button: closes the guest's session and goes back to Welcome. |
POST category/select{"id": "…"} or {"index": n} | Category Picker page | Picks a category like a tap on its card, then opens the Template Picker. |
POST template/select{"id": "…"} or {"index": n} | Welcome page (any template in the event), or Template Picker page with the template shown on it | On the Template Picker: picks a template like a tap on its card and confirms it (a Next button is pressed for you). On Welcome: starts the session with that template, like tapping a card in a Welcome template gallery. The Start PIN or payment shows on the booth screen first, then the picker pages are skipped. On Welcome, index counts the Welcome gallery's cards; without a gallery there, pick by id. |
POST camera/capture | Camera page, live view idle (or waiting between shots), camera live | The Capture button: starts the countdown and the shots. Between shots of a manual multi-shot, takes the next one. |
POST camera/retake | Camera page, reviewing the shots, retakes left | The Retake button for the shot on screen, following that button's after-tap setting. |
POST camera/process | Camera page, reviewing the shots | The Process button: sends the shots to the template. |
GET result | A guest's result has been shown, until the next guest starts | The latest guest's results — a photo, a GIF, a video — with a link to each file and its thumbnail. See Results. |
GET result/file?t=…&index=n&thumb=1 (optional) | Same as GET result | One result file, or its thumbnail, streamed with byte ranges. Use the url / thumbUrl from GET result as they are — t works in place of the password. |
POST result/print | Result page, a printer set up, printing allowed | The Print button for the result on screen. Print PIN, limits and the after-print lock apply; with extra prints on sale it opens the purchase. |
POST result/qr{"type": "web"} or "local" | Result page, that QR set up in Settings | Shows the QR code for the result on screen, like the QR Web / QR Local button. Default web. |
Covers
Add covers=1 to GET templates or GET categories and every card comes with its cover picture inline — enough to build your own picker from that one call:
{ "ok": true, "data": [
{ "id": "t_123", "name": "Strip 3", …,
"cover": { "mime": "image/jpeg", "width": 600, "height": 900, "video": false,
"hash": "3f9a1c0b7e2d", "data": "data:image/jpeg;base64,/9j/4AAQ…" } } ] }
datagoes straight into an<img src>. It isnullif the cover file can't be read.- The size is the one the booth's own picker shows (400 to 1600 px wide); for an event that isn't running, 400 px.
- A video cover sends its first frame, with
video: true. hashchanges when the cover changes — redraw only those.coverisnullfor a card without a cover, and when you leave outcovers=1.
Results
GET result lists the latest guest's results. One session can make several — a photo, a GIF, a video:
{ "ok": true, "data": {
"id": "9c2e4b1f…", "onScreen": true,
"items": [
{ "index": 1, "kind": "photo", "mime": "image/jpeg", "bytes": 2481133, "canShare": true,
"url": "/api/v1/result/file?t=9c2e4b1f…&index=1",
"thumbUrl": "/api/v1/result/file?t=9c2e4b1f…&index=1&thumb=1" },
{ "index": 2, "kind": "video", "mime": "video/mp4", … } ] } }
- Readable from the moment the Result page shows until the next guest starts — also on the Welcome page in between. Only the latest guest, never earlier ones.
- Put the booth address in front of
urlandthumbUrland use them as they are in an<img>or<video>tag. No password needed — thetin them is enough. - Files stream with byte ranges, so videos seek and play on phones too. The thumbnail is up to 1024 px wide; a video's is its first frame.
idchanges whenever the results change (new guest, reprocess, another template). A link with an oldtanswers410 expired.
Errors
| HTTP | Code | Meaning |
|---|---|---|
| 400 | bad_request | A parameter is missing or not valid. |
| 401 | unauthorized | No password, or the wrong one. |
| 404 | not_found | Unknown path or command. |
| 404 | unknown_event, unknown_template, unknown_category, unknown_result | No event, template, category or result with that id or index. |
| 404 | no_thumbnail | A thumbnail can't be made for that result file. |
| 405 | method_not_allowed | POST sent to a read. |
| 409 | no_event | The command needs a running event. |
| 409 | event_running | An event is already running. |
| 409 | editor_open | The event editor is open on the booth PC (another event, or unsaved changes). |
| 409 | no_templates | The event has no templates. |
| 409 | wrong_page | Not valid on the page the booth is showing. |
| 409 | wrong_phase | Camera page, but not at a point where this is possible. |
| 409 | dialog_open | A dialog is open on the booth screen. |
| 409 | processing | A photo is being processed. |
| 409 | busy | The booth is still finishing the last action. Try again in a moment. |
| 409 | not_allowed | A rule blocks it: no retakes left, print limit reached, print lock after the last print. |
| 409 | not_configured | No printer, or that QR type is not set up in Settings. |
| 409 | no_result | No result to read yet (or the next guest has started). |
| 410 | expired | A result file link from an earlier result. Call GET result again. |
| 429 | too_many_attempts | Too many wrong passwords. Wait a minute. |
| 503 | busy | Q-Booth did not answer in time. Try again. |
Log
Every call is written to the app log folder, log\local_api\, one file per day: the caller's address, the command and its parameters, the answer and the reason for any refusal. The password is never written. Successful status polls are left out.
Version history
| API version | Q-Booth version | Changes |
|---|---|---|
| 1.1 | 5.9.4.0 | Cover pictures in templates / categories (covers=1), result and result/file (the latest guest's photos and videos), id in status.result. |
| 1 | 5.9.2.0 | First release: status, commands, events, event start / stop, templates, categories, session start / end, category and template select, camera capture / retake / process, result print and QR. |
Still need help?
Our team answers on WhatsApp. Tell us your Q-Booth version and what you see on screen.