Print Room HQ Setup guide Download the beta

The Print Room HQ API

Read every printer, the history, the queue, spools and OEE, pause or stop a print, add to the queue, and listen to live events, from your own scripts, dashboards and apps.

In Print Room HQ: Settings › Deck › General › Passcode › Tokens

What you need

  • Print Room HQ 2.56 or newer, and its address on your network, like http://print-room:8080.
  • If you set a passcode (you should): a token from Settings › Deck › General › Passcode › Tokens for tools and the API.

Try it

  1. Make a token. In Settings › Deck › General › Passcode, under Tokens for tools and the API, type a name, pick Read-only or Full access, and tap Make a token. Copy it; it’s shown once.
  2. Ask for your printers. From any computer on your network:
curl -H "Authorization: Bearer pd_yourtoken" http://print-room:8080/api/v1/printers

With no passcode on the deck, leave the header out: anything on your network can use the API, the same as the page itself. A read-only token can call the GET routes under /api/v1 and nothing else. A full-access token can pause, stop and queue too. No token can change the passcode or make tokens.

Routes

Everything is under /api/v1, answers JSON, and keeps its shape within version 1: new fields may appear, nothing is renamed or removed. Errors come back as { "error": "…" } with a 4xx status.

RouteWhat it does
GET /printersEvery printer: status, job, progress, layer, time left and finish time, temperatures, fans, each AMS slot or toolhead with its material, color and spool, messages, power. With it comes arrangement: the order set with Arrange cards on the Live page (["summary", "p:<id>", "room", …]), or null when Live is on automatic. New in 3.12.2.
GET /printers/:idOne printer.
GET /printers/:id/snapshotA camera picture (JPEG). A printer with more than one camera lists them as cameras ([{ "key", "label", "main" }]); add ?cam=<key> for one that isn’t the main one. New in 3.17.
GET /printers/:id/thumbThe running print’s picture from the sliced file (also as job.thumbUrl).
POST /printers/:id/pause · /resume · /stopControl a print. Full-access token. Some printers only allow this in LAN mode.
POST /printers/:id/plate-clearedMark the plate cleared, so the queue can start the next job.
GET /jobsThe print history, newest first. ?days=30 or ?since=2026-10-01, ?printer=id, ?limit=100 (up to 500).
GET /jobs/:id · /photo · /thumbOne print, its finish photo, its slicer picture.
GET /jobs/:id/watchWhat Claude saw during a print: every check it made (the quick look, the sharper second look, Opus’s review), the quality report, the time-lapse’s frames and any frames kept around a problem. New in 3.6.2; every print in GET /jobs also carries a short watch summary, quality, timelapse and air.
POST /jobs/:id/stop-whyWhy you stopped a print: {"reason": "plans"} (not a failure), "failing", or what went wrong (detached, adhesion, blob, layershift, supports, clog, filament, other). New in 3.7; prints in GET /jobs carry stopWhy, and askWhy is true for a stopped print still waiting for an answer.
GET /queueThe print queue, with what each job is waiting for.
POST /queueAdd a sliced file (multipart form: file, and optionally copies (up to 500), printerId, group or model, plate, note). group is a printer group’s id from GET /queue (groups); the job goes to the first free printer in it. New in 4.0.
POST /queue/from-jobPrint a past print again: { "jobId": "…", "copies": 2 }.
DELETE /queue/:idTake a job off the queue.
GET /spoolsYour spools: material, color, grams left, price per kg, where they’re loaded.
GET /stats?days=7Prints, success rate, hours, filament and power cost, and OEE per printer.
GET /eventsA live stream of events (below).
POST /printers/:id/lightSwitch a printer’s chamber light (Bambu, and the Snapmaker U1’s cavity light): { "on": true }. Full-access token.
POST /printers/:id/speedChange the speed while it prints: { "level": 3 } (1 silent, 2 standard, 3 sport, 4 ludicrous).
POST /printers/:id/shareA link anyone can open to watch the print that’s running.
GET /queue/settingsWhether the queue is paused and only starts during shop hours.
POST /queue/settingsPause or let go of the queue: { "paused": true }, { "shopHoursOnly": false }.
POST /queue/orderA new order for the queue: { "ids": ["…", "…"] }, first to print first.
POST /queue/:idHold a job or let it print, or change its copies: { "hold": true }, { "copies": 4 }.
POST /spoolsAdd a spool: { "name", "material", "color", "finish", "totalGrams" } (a catalog pick fills these).
POST /spools/:id/assignPut a spool in a slot: { "printerId": "x2d-left", "slot": 0 }, or back on the shelf with { "printerId": null }.
GET /catalog?q=polyterra tealSearch the 6,000-color filament catalog. GET /catalog/suggest?vendor=&type=&color= answers what a slot most likely holds.
GET /maintenanceCare tasks with how close each one is to due (ok, soon, due).
POST /maintenance/:id/doneMark a care task done now.
GET /gearPlates and nozzles: each one, where it is (a printer, or on the shelf) and its record (prints, hours, failed). Printers carry gear (the plate, the side up, its hours since washed, the nozzles) and prints carry the plate and nozzles they used. New in 3.16.
POST /gear/plates/:id/place · /flip · /washedPut a plate in a printer ({ "printerId", "side" }, or { "printerId": null } for the shelf), turn it over, or mark it washed (the printer’s wash task too).
GET /roomThe room: air quality, humidity sensors and the weather outside. GET /room/snapshot is a room camera picture.
POST /sayDeck says it out loud in the print room: { "text": "Dinner’s ready!" } (up to 200 characters).
POST /askAsk Deck a question and get the answer back: { "text": "What’s printing?" } answers with text. Add "voice": true and, when the deck has a voice, audioUrl is the answer spoken in Deck’s voice (a WAV, kept two minutes). Deck never pauses or resumes by itself here: such an answer carries confirm with the action for you to send.
POST /printers/:id/dryDry the filament in an AMS 2 Pro or AMS HT: { "amsId": 1, "temp": 55, "hours": 8, "rotateTray": true } (45 °C up to 65, or 85 on the HT; 1 to 24 hours), or { "amsId": 1, "stop": true }. Each printer’s ams says which units can dry and the minutes left.
GET /reports?days=30Prints that failed or were flagged (by Claude, the failure detector or a poor quality check), newest first, with a cover photo.
GET /reports/:idOne report: the reason, Claude’s checks, the detector’s score, the photos (GET /jobs/:id/evidence/:set/:file) and the failure types to choose from.
POST /reports/:id/clearNot a failure: { "notFailure": true } (it teaches the detector), or { "undo": true }.
POST /reports/:id/reasonSay why it failed: { "type": "adhesion", "cause": "…" }, or { "clear": true }.
GET /stockroom?q=hookSearch the sliced files on your computers (the Stockroom): name, printer and nozzle it was sliced for, plates, time, grams, materials and a picture (GET /stockroom/thumb/:hash).
POST /stockroom/checkFor { "items": [{ "device", "id" }] }: which printers it fits (and why not), the cost, and how it has printed before.
POST /stockroom/printSend a Stockroom file to the queue: { "device", "id", "printerId" or "model", "plate", "copies" }. GET /stockroom/request/:id follows it while the computer sends it.
GET /quotesQuotes and invoices with their customer, total and state.
GET /quotes/:idOne quote or invoice: lines, totals, notes, its pay link, changes from the last revision and a ready follow-up message.
GET /quotes/:id/pdfThe customer’s copy as a PDF (the same page as HTML where the deck can’t make PDFs).
POST /quotes/:id/statusMark a quote { "status": "accepted" }, declined or sent.
POST /quotes/:id/follow-upEmail the follow-up: { "text": "…" } (needs email set up on the deck).
POST /quotes/:id/invoiceMake the invoice for an accepted quote, with a card pay link when Stripe is on.
POST /invoices/:id/statusMark an invoice { "status": "paid" }, unpaid or void, with an optional note.
GET /ordersYour Shopify and Etsy orders: number, ship-by date, state (needs-file, ready, printing, printed, shipped, cancelled) and, per item, the file it prints from and how many are printed. POST /orders/sync checks the stores now.
GET /orders/:id/items/:n/candidatesThe files that could print an item, best match first (sliced Stockroom files and finished prints).
POST /orders/:id/items/:n/fileSay what prints it: { "file": { "kind": "stockroom", "device", "item" }, "perPrint": 2 } or { "file": { "kind": "job", "jobId" } }. Later orders of that product then queue themselves. POST /orders/:id/items/:n/queue queues it again.
GET /requestsPrint requests from your Send me a print link, with their files (GET /requests/:id/files/:n) and the link itself.
POST /requests/:id/approveAdd a request’s files to the Stockroom: { "reply": "On it, Friday." } is what the sender sees.
POST /requests/:id/statusMove a request along: { "status": "printing" } (new, approved, printing, done, declined), with an optional reply. DELETE /requests/:id removes it and its files.
GET /reelsYour highlight reels: a poster picture and the videos (GET /reels/:id/tall.mp4, wide.mp4), and the one being made with its progress.
POST /reelsMake a reel of this week or today: { "kind": "week" } or "day". It takes a few minutes. DELETE /reels/:id removes one.
GET /powerYour smart plugs: on or off, watts now, watt-hours today, and whether switching off is safe right now (and why not).
POST /power/:idSwitch a plug: { "on": false }. A printer’s plug only goes off when it isn’t printing and its nozzles are cool; otherwise the answer is 409 with the reason. POST /power/:id/options sets { "autoOff", "idleMin", "wake" }.
GET /healthMachine health for each printer: ok, watch or attention, the flags behind it, print hours, recurring errors, Wi-Fi drops, heat-up trend and care that’s due.
POST /health/:printerId/hoursSet a printer’s hour count from its own screen: { "hours": 1234.5 }; the deck keeps counting from there. { "hours": null } counts recorded prints only.
POST /live/orderArrange the Live page for every screen: { "order": ["summary", "p:x2d", "room"] }, or { "order": null } for automatic. New in 3.13.
POST /stockroom/tonightPrint Tonight: for each printer, the Stockroom files and past prints that finish by { "until": 1795176000000 } (milliseconds; leave it out for the deck’s own pick), what each needs from the AMS, and the deck’s suggestion (pick, an index into options). New in 3.13.
POST /stockroom/tonight/queueQueue the night’s picks: { "until", "picks": [{ "printerId", "key" }] }. Each one starts on its printer as soon as it’s free. New in 3.13.
POST /stockroom/filesAdd sliced files to the Stockroom from anywhere (multipart form, files, up to 50). New in 3.13.
GET /alarmsAlarm history, newest first: every printer fault, pause, failed or stopped print, chamber keeper fix, failure-watch flag, lost connection and room alarm, each with how it ended (outcome: the chamber keeper resumed it, printing again, the print ended, back online). Filter with ?printer=, ?group= (fault, pause, chamber, watch, connection, room) and page with ?before= (milliseconds). Kept 90 days. New in 3.13.4.
GET /alarms/:id/photoThe camera picture taken with an alarm, when there is one (photoUrl). New in 3.13.4.

Examples

Queue three copies of a sliced file on any X2D:

curl -H "Authorization: Bearer pd_yourtoken" \
  -F [email protected] -F copies=3 -F model=X2D \
  http://print-room:8080/api/v1/queue

Part of a printer, from GET /printers:

{ "id": "x2d-left", "name": "X2D Left", "model": "X2D", "brand": "Bambu Lab",
  "online": true, "status": "printing", "needsAttention": false,
  "job": { "name": "Cable comb", "progress": 37, "layer": 79, "totalLayers": 212,
           "remainingSec": 3392, "finishAt": "2026-10-28T11:15:24Z" },
  "temps": [ { "label": "Nozzle L", "current": 220.3, "target": 220 }, … ],
  "fans": [ { "label": "Part", "pct": 80, "rpm": null, "group": null }, … ],
  "camera": { "silentMin": 0, "busy": false },
  "slots": [ { "unit": "AMS A", "label": "A2", "material": "PETG", "color": "#1F1F1F",
               "remainingPct": 72, "active": true, "spool": { "name": "Black PETG", "remainingGrams": 720, "low": false } }, … ] }

New in 3.8.4: camera says when a printer’s camera has gone quiet during a print (silentMin, minutes without a picture), which leaves Claude’s watch and the failure detector blind, and busy is true when the printer is turning the deck away because another app is showing its camera, like Bambu Studio’s live view.

Everything the page can do

From 3.13 the rest of the web page’s features answer under /api/v1 too, the same answers the page itself gets. GET /api/v1 lists every route. A read-only token can read them all; changing anything takes a full-access token.

RoutesWhat they cover
/projects, /licensesProjects with their parts, revisions and totals, and the commercial licenses you hold.
/quote, POST /quotesPrice a print (a past print, a sliced file or typed in), when it could be ready, and turning the price into a customer quote.
/history, /history.csv, /wrappedHistory’s numbers and chart for 7, 30, 90 or 365 days, the CSV, and your Wrapped.
/detectiveThe Print Detective: failures, their patterns, and its conversations (POST /detective/ask).
/materials, /care, /networkMaterial Lab, the full maintenance list for adding and editing tasks, and the network’s health.
/faceFace to Face: the call’s face and length, the Nuance key (POST and DELETE /face/key), a single-use session token for one call (POST /face/session; send {"camera": true} to let Deck see the person) and Deck’s lookups during the call (POST /face/tool). New in 3.14.1.
/settings, /setup, /voice, /sensors, /sonos, /room-cam, /detector, /wled, /govee, /deck, /schedule, /ai, /ha, /updates, /systemSettings: alerts and costs, adding and arranging printers, voice, sensors, speakers, the room camera, the failure detector, status lights, the deck’s name and shop hours, Claude, Home Assistant, updates and the computer it runs on. Restarting needs the header X-PF-Confirm: yes.

Live events

GET /api/v1/events is a Server-Sent Events stream of the same events webhooks get (the list), as they happen. Add ?events=print.finished,print.failed to pick. Each message has event: with its name and data: with the JSON. A comment line every 25 seconds keeps it open.

curl -N -H "Authorization: Bearer pd_yourtoken" "http://print-room:8080/api/v1/events?events=print.finished"

Want it pushed to you instead? Use a webhook.

If something’s not right

“Sign in to Print Room HQ first.”

The deck has a passcode and the request had no token, or the token was deleted. Send Authorization: Bearer pd_….

“This token can only read.”

That’s a read-only token. Make a full-access one for scripts that pause, stop or queue.

Can I use the API from outside my home?

Yes. Turn on Remote access in Settings › Deck › General and send the same token to your deck’s own address, like https://yourname.printroomhq.app/api/v1/printers. Tailscale works too. Don’t open a port on your router for it.

What about the other /api routes the page uses?

They change from release to release as the page needs. Build on /api/v1; it stays put, and since 3.13 it reaches everything the page can do (the list).