Docs API reference
Printing
Photo printing (experimental): a screen on a Raspberry Pi, Mac or Windows computer prints on a printer connected to it. Choose and calibrate a printer, print engagement photos, run the queue and set what guests may print. Calibration readings are typed in the app by someone holding the test sheet.
Every call needs an API key in the Authorization header. New to the API? Start with
the API overview.
- GET List screens with printers /printing/screens
- PUT Choose a printer and paper /printing/screens/{id}
- PATCH Pause or resume a printer /printing/screens/{id}
- POST Print a test sheet /printing/screens/{id}/test-sheet
- GET List the print queue /engagements/{id}/prints
- POST Print photos /engagements/{id}/prints
- POST Release, cancel, retry or move a print /engagements/{id}/prints/{job_id}
- GET Get guest printing settings /engagements/{id}/printing
- PATCH Change guest printing /engagements/{id}/printing
List screens with printers
/printing/screens printingEach screen’s printers with their state, alerts, papers and options, the chosen printer and paper and whether it is calibrated and paused.
Responses
- 200 The screens.
- 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
Response fields (200)
itemsobject[]12 fields in
itemsidstringdevice_idstringstage_idstringstagestringplatformstringavailablebooleannotestring or nullmanages_printersbooleanprintersobject[]id, name, model, color, state, reasons, supplies, papers (id, label, borderless), qualities, media_types, trays.
chosenobject or nullprinter_id, paper_id, names, options and calibrated_at (null = needs calibration).
pausedbooleantest_sheetobject or null
curl "https://www.wunderframe.com/api/v1/printing/screens" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY"{
"items": [
{
"id": "stg_Hall:5f0c2b6e",
"device_id": "5f0c2b6e",
"stage_id": "stg_Hall",
"stage": "Hall",
"platform": "pi-linux",
"available": true,
"note": null,
"manages_printers": true,
"printers": [],
"chosen": {
"printer_id": "Canon_SELPHY_CP1500",
"paper_id": "jpn_hagaki_100x148mm",
"calibrated_at": null
},
"paused": false,
"test_sheet": null
}
]
}Error example
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}Choose a printer and paper
/printing/screens/{id} printingOnly options the printer offers are accepted. Another paper, or borderless switched, needs calibration again.
Parameters
idstring required pathThe screen id (from
GET /printing/screens).
Request body required
printer_idstring requiredpaper_idstring requiredborderlessbooleancolorstringOne of
color,monochromequalitystringOne of
draft,normal,highmedia_typestringtraystring
Responses
- 200 The screen as it is now.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 409 Conflicts with the current state.
Response fields (200)
idstringdevice_idstringstage_idstringstagestringplatformstringavailablebooleannotestring or nullmanages_printersbooleanprintersobject[]id, name, model, color, state, reasons, supplies, papers (id, label, borderless), qualities, media_types, trays.
chosenobject or nullprinter_id, paper_id, names, options and calibrated_at (null = needs calibration).
pausedbooleantest_sheetobject or null
curl -X PUT "https://www.wunderframe.com/api/v1/printing/screens/stg_Hall:5f0c2b6e" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"printer_id": "Canon_SELPHY_CP1500",
"paper_id": "jpn_hagaki_100x148mm",
"borderless": true
}'{
"id": "stg_Hall:5f0c2b6e",
"device_id": "5f0c2b6e",
"stage_id": "stg_Hall",
"stage": "Hall",
"platform": "pi-linux",
"available": true,
"note": null,
"manages_printers": true,
"printers": [],
"chosen": {
"printer_id": "Canon_SELPHY_CP1500",
"paper_id": "jpn_hagaki_100x148mm",
"calibrated_at": null
},
"paused": false,
"test_sheet": null
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}Pause or resume a printer
/printing/screens/{id} printingParameters
idstring required pathThe screen id (from
GET /printing/screens).
Request body required
pausedboolean required
Responses
- 200 The screen as it is now.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 409 Conflicts with the current state.
Response fields (200)
idstringdevice_idstringstage_idstringstagestringplatformstringavailablebooleannotestring or nullmanages_printersbooleanprintersobject[]id, name, model, color, state, reasons, supplies, papers (id, label, borderless), qualities, media_types, trays.
chosenobject or nullprinter_id, paper_id, names, options and calibrated_at (null = needs calibration).
pausedbooleantest_sheetobject or null
curl -X PATCH "https://www.wunderframe.com/api/v1/printing/screens/stg_Hall:5f0c2b6e" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"paused": true
}'{
"id": "stg_Hall:5f0c2b6e",
"device_id": "5f0c2b6e",
"stage_id": "stg_Hall",
"stage": "Hall",
"platform": "pi-linux",
"available": true,
"note": null,
"manages_printers": true,
"printers": [],
"chosen": {
"printer_id": "Canon_SELPHY_CP1500",
"paper_id": "jpn_hagaki_100x148mm",
"calibrated_at": null
},
"paused": false,
"test_sheet": null
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}Print a test sheet
/printing/screens/{id}/test-sheet printingUses one sheet of the chosen paper.
Parameters
idstring required pathThe screen id (from
GET /printing/screens).
Responses
- 201 The test sheet’s job.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 409 Conflicts with the current state.
Response fields (201)
job_idstring
curl -X POST "https://www.wunderframe.com/api/v1/printing/screens/stg_Hall:5f0c2b6e/test-sheet" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY"{
"job_id": "string"
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}List the print queue
/engagements/{id}/prints printingThe engagement’s prints, those in line first, and the screens that can print for it.
Parameters
idstring required pathThe engagement id (from
GET /engagements).
Responses
- 200 The queue.
- 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
Response fields (200)
itemsobject[]12 fields in
itemsidstringstatestringOne of
held,queued,preparing,printing,done,failed,cancelled,expiredsourcestringOne of
guest,console,teststylestring or nullcopiesintegerdevice_idstringguest_namestring or nullnotestring or nullpositioninteger or nullrenderingbooleanatintegercan_retryboolean
stationsobject[]
curl "https://www.wunderframe.com/api/v1/engagements/eng_Q2mK7vB3xYcZp4dW1/prints" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY"{
"items": [
{
"id": "pj_3d6dc4b8",
"state": "queued",
"source": "guest",
"style": "single",
"copies": 1,
"device_id": "5f0c2b6e",
"guest_name": "Ann",
"note": null,
"position": 2,
"rendering": false,
"at": 1790150400000,
"can_retry": false
}
],
"stations": [
{}
]
}Error example
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}Print photos
/engagements/{id}/prints printingUses paper. Each call prints again: send it once, and look at the queue before retrying a call whose answer you did not get.
Parameters
idstring required pathThe engagement id (from
GET /engagements).
Request body required
screen_idstring requiredpost_idsstring[] requiredstylestringA strip takes 3 or 4 photos, a grid 2 or 4.
One of
single,strip,gridcolorstringOne of
color,monochromecopiesinteger1–10
Responses
- 201 How many sheet jobs were made.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 409 Conflicts with the current state.
Response fields (201)
jobsinteger
curl -X POST "https://www.wunderframe.com/api/v1/engagements/eng_Q2mK7vB3xYcZp4dW1/prints" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"screen_id": "stg_Hall:5f0c2b6e",
"post_ids": [
"pst_7vB3xYcZp4dW1qR8"
],
"style": "single",
"color": "color",
"copies": 1
}'{
"jobs": 0
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}Release, cancel, retry or move a print
/engagements/{id}/prints/{job_id} printingParameters
idstring required pathThe engagement id (from
GET /engagements).job_idstring required pathThe print id (from
GET /engagements/{id}/prints).
Request body required
actionstring requiredOne of
release,cancel,retry,front
Responses
- 200 Done.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 409 Conflicts with the current state.
Response fields (200)
okboolean
curl -X POST "https://www.wunderframe.com/api/v1/engagements/eng_Q2mK7vB3xYcZp4dW1/prints/job_id" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "release"
}'{
"ok": false
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}Get guest printing settings
/engagements/{id}/printing printingParameters
idstring required pathThe engagement id (from
GET /engagements).
Responses
- 200 The settings.
- 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
Response fields (200)
enabledbooleanscreen_device_idstring or nulllayoutstringmodestringper_guestintegertotalinteger or nullwait_hoursintegerstylesstring[]
curl "https://www.wunderframe.com/api/v1/engagements/eng_Q2mK7vB3xYcZp4dW1/printing" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY"{
"enabled": true,
"screen_device_id": "5f0c2b6e",
"layout": "full",
"mode": "auto",
"per_guest": 2,
"total": null,
"wait_hours": 12,
"styles": [
"single"
]
}Error example
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}Change guest printing
/engagements/{id}/printing printingOnly what you send changes. Switching on needs a screen whose chosen printer is calibrated.
Parameters
idstring required pathThe engagement id (from
GET /engagements).
Request body required
enabledbooleanscreen_idstringlayoutstringOne of
full,brandedmodestringOne of
auto,heldper_guestinteger1–50
totalinteger or nullwait_hoursinteger1–72
stylesstring[]
Responses
- 200 The settings now.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 409 Conflicts with the current state.
Response fields (200)
enabledbooleanscreen_device_idstring or nulllayoutstringmodestringper_guestintegertotalinteger or nullwait_hoursintegerstylesstring[]
curl -X PATCH "https://www.wunderframe.com/api/v1/engagements/eng_Q2mK7vB3xYcZp4dW1/printing" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"screen_id": "stg_Hall:5f0c2b6e",
"mode": "held",
"per_guest": 3,
"total": 100,
"styles": [
"single",
"strip"
]
}'{
"enabled": true,
"screen_device_id": "5f0c2b6e",
"layout": "full",
"mode": "auto",
"per_guest": 2,
"total": null,
"wait_hours": 12,
"styles": [
"single"
]
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}