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.

11 min read Updated 3 Nov 2026 Watch the video (2:13)

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.

Note

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

  1. 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.)
  2. Leave Password empty to have one made for you, or type your own. The default Port is 8730.
  3. 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.
  4. 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"
The Sandbox test page: commands with Get and Run buttons, some muted, the Booth status panel and a Last reply showing 409 wrong_page
The Sandbox. A muted button means the booth would refuse that command right now; run it anyway to see why (here 409 wrong_page).
Tip

No code needed to drive the booth from a phone: the Remote control is built on this API.

Tip

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"]
}
FieldMeaning
eventThe running event, or null when the booth is not running one.
pagenone, welcome, survey, categoryPicker, templatePicker, input, camera or result.
sessionactive once the guest has started (and paid, if the event charges), and the template picked so far.
cameraOnly on the Camera page. phase is liveIdle, counting, recording, capturing, reveal, shotDelay or review. retakesLeft is null when unlimited.
resultOnly 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.
busyA dialog on screen (payment, PIN, QR, a notice) or a photo being processed. Actions are refused while either is true.
availableThe 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:

CallThen wait for
POST event/start {"id": "…"}page: welcome
POST session/startpage: templatePicker (or categoryPicker / survey, depending on the event)
POST template/select {"index": 1}page: camera, camera.phase: liveIdle, camera.feed: live
POST camera/capturecamera.phase: review
POST camera/processpage: result
GET result— (show the photos on your own screen)
POST result/print—
POST session/endpage: welcome
Tip

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.

CommandValid whenWhat it does
GET statusAlwaysWhere the booth is, and which actions it would accept. See Status.
GET commandsAlways, no passwordThe command list with the API version — what the test page is built from.
GET eventsAlwaysEvery 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 changesStarts the event, like its Launch button. A template warning, if any, shows on the booth screen first.
POST event/stopAn event is running, no dialog, not processingEnds 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 runningThe 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 runningThe 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/startWelcome pageThe Start button. A Start PIN or payment, if the event has one, shows on the booth screen.
POST session/endAny page after WelcomeThe Home button: closes the guest's session and goes back to Welcome.
POST category/select
{"id": "…"} or {"index": n}
Category Picker pagePicks 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 itOn 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/captureCamera page, live view idle (or waiting between shots), camera liveThe Capture button: starts the countdown and the shots. Between shots of a manual multi-shot, takes the next one.
POST camera/retakeCamera page, reviewing the shots, retakes leftThe Retake button for the shot on screen, following that button's after-tap setting.
POST camera/processCamera page, reviewing the shotsThe Process button: sends the shots to the template.
GET resultA guest's result has been shown, until the next guest startsThe 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 resultOne 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/printResult page, a printer set up, printing allowedThe 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 SettingsShows 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…" } } ] }
  • data goes straight into an <img src>. It is null if 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.
  • hash changes when the cover changes — redraw only those.
  • cover is null for a card without a cover, and when you leave out covers=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 url and thumbUrl and use them as they are in an <img> or <video> tag. No password needed — the t in 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.
  • id changes whenever the results change (new guest, reprocess, another template). A link with an old t answers 410 expired.

Errors

HTTPCodeMeaning
400bad_requestA parameter is missing or not valid.
401unauthorizedNo password, or the wrong one.
404not_foundUnknown path or command.
404unknown_event, unknown_template, unknown_category, unknown_resultNo event, template, category or result with that id or index.
404no_thumbnailA thumbnail can't be made for that result file.
405method_not_allowedPOST sent to a read.
409no_eventThe command needs a running event.
409event_runningAn event is already running.
409editor_openThe event editor is open on the booth PC (another event, or unsaved changes).
409no_templatesThe event has no templates.
409wrong_pageNot valid on the page the booth is showing.
409wrong_phaseCamera page, but not at a point where this is possible.
409dialog_openA dialog is open on the booth screen.
409processingA photo is being processed.
409busyThe booth is still finishing the last action. Try again in a moment.
409not_allowedA rule blocks it: no retakes left, print limit reached, print lock after the last print.
409not_configuredNo printer, or that QR type is not set up in Settings.
409no_resultNo result to read yet (or the next guest has started).
410expiredA result file link from an earlier result. Call GET result again.
429too_many_attemptsToo many wrong passwords. Wait a minute.
503busyQ-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 versionQ-Booth versionChanges
1.15.9.4.0Cover pictures in templates / categories (covers=1), result and result/file (the latest guest's photos and videos), id in status.result.
15.9.2.0First 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.

Chat on WhatsApp