Printing

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.

List screens with printers

GET /printing/screens printing

Each 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)
  • items object[]
    12 fields in items
    • id string
    • device_id string
    • stage_id string
    • stage string
    • platform string
    • available boolean
    • note string or null
    • manages_printers boolean
    • printers object[]

      id, name, model, color, state, reasons, supplies, papers (id, label, borderless), qualities, media_types, trays.

    • chosen object or null

      printer_id, paper_id, names, options and calibrated_at (null = needs calibration).

    • paused boolean
    • test_sheet object or null
curl "https://www.wunderframe.com/api/v1/printing/screens" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "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
Response 401
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}

Choose a printer and paper

PUT /printing/screens/{id} printing

Only options the printer offers are accepted. Another paper, or borderless switched, needs calibration again.

Parameters

  • id string required path

    The screen id (from GET /printing/screens).

Request body required

  • printer_id string required
  • paper_id string required
  • borderless boolean
  • color string

    One of color, monochrome

  • quality string

    One of draft, normal, high

  • media_type string
  • tray string

Responses

  • 200 The screen as it is now.
  • 400 The request is invalid — details.field names 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)
  • id string
  • device_id string
  • stage_id string
  • stage string
  • platform string
  • available boolean
  • note string or null
  • manages_printers boolean
  • printers object[]

    id, name, model, color, state, reasons, supplies, papers (id, label, borderless), qualities, media_types, trays.

  • chosen object or null

    printer_id, paper_id, names, options and calibrated_at (null = needs calibration).

  • paused boolean
  • test_sheet object 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
}'
Response 200
{
  "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
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

Pause or resume a printer

PATCH /printing/screens/{id} printing

Parameters

  • id string required path

    The screen id (from GET /printing/screens).

Request body required

  • paused boolean required

Responses

  • 200 The screen as it is now.
  • 400 The request is invalid — details.field names 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)
  • id string
  • device_id string
  • stage_id string
  • stage string
  • platform string
  • available boolean
  • note string or null
  • manages_printers boolean
  • printers object[]

    id, name, model, color, state, reasons, supplies, papers (id, label, borderless), qualities, media_types, trays.

  • chosen object or null

    printer_id, paper_id, names, options and calibrated_at (null = needs calibration).

  • paused boolean
  • test_sheet object 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
}'
Response 200
{
  "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
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

List the print queue

GET /engagements/{id}/prints printing

The engagement’s prints, those in line first, and the screens that can print for it.

Parameters

  • id string required path

    The 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)
  • items object[]
    12 fields in items
    • id string
    • state string

      One of held, queued, preparing, printing, done, failed, cancelled, expired

    • source string

      One of guest, console, test

    • style string or null
    • copies integer
    • device_id string
    • guest_name string or null
    • note string or null
    • position integer or null
    • rendering boolean
    • at integer
    • can_retry boolean
  • stations object[]
curl "https://www.wunderframe.com/api/v1/engagements/eng_Q2mK7vB3xYcZp4dW1/prints" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "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
Response 401
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}

Print photos

POST /engagements/{id}/prints printing

Uses paper. Each call prints again: send it once, and look at the queue before retrying a call whose answer you did not get.

Parameters

  • id string required path

    The engagement id (from GET /engagements).

Request body required

  • screen_id string required
  • post_ids string[] required
  • style string

    A strip takes 3 or 4 photos, a grid 2 or 4.

    One of single, strip, grid

  • color string

    One of color, monochrome

  • copies integer

    1–10

Responses

  • 201 How many sheet jobs were made.
  • 400 The request is invalid — details.field names 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)
  • jobs integer
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
}'
Response 201
{
  "jobs": 0
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

Release, cancel, retry or move a print

POST /engagements/{id}/prints/{job_id} printing

Parameters

  • id string required path

    The engagement id (from GET /engagements).

  • job_id string required path

    The print id (from GET /engagements/{id}/prints).

Request body required

  • action string required

    One of release, cancel, retry, front

Responses

  • 200 Done.
  • 400 The request is invalid — details.field names 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)
  • ok boolean
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"
}'
Response 200
{
  "ok": false
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}

Get guest printing settings

GET /engagements/{id}/printing printing

Parameters

  • id string required path

    The 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)
  • enabled boolean
  • screen_device_id string or null
  • layout string
  • mode string
  • per_guest integer
  • total integer or null
  • wait_hours integer
  • styles string[]
curl "https://www.wunderframe.com/api/v1/engagements/eng_Q2mK7vB3xYcZp4dW1/printing" \
  -H "Authorization: Bearer $WUNDERFRAME_API_KEY"
Response 200
{
  "enabled": true,
  "screen_device_id": "5f0c2b6e",
  "layout": "full",
  "mode": "auto",
  "per_guest": 2,
  "total": null,
  "wait_hours": 12,
  "styles": [
    "single"
  ]
}
Error example
Response 401
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}

Change guest printing

PATCH /engagements/{id}/printing printing

Only what you send changes. Switching on needs a screen whose chosen printer is calibrated.

Parameters

  • id string required path

    The engagement id (from GET /engagements).

Request body required

  • enabled boolean
  • screen_id string
  • layout string

    One of full, branded

  • mode string

    One of auto, held

  • per_guest integer

    1–50

  • total integer or null
  • wait_hours integer

    1–72

  • styles string[]

Responses

  • 200 The settings now.
  • 400 The request is invalid — details.field names 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)
  • enabled boolean
  • screen_device_id string or null
  • layout string
  • mode string
  • per_guest integer
  • total integer or null
  • wait_hours integer
  • styles string[]
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"
  ]
}'
Response 200
{
  "enabled": true,
  "screen_device_id": "5f0c2b6e",
  "layout": "full",
  "mode": "auto",
  "per_guest": 2,
  "total": null,
  "wait_hours": 12,
  "styles": [
    "single"
  ]
}
Error example
Response 400
{
  "error": {
    "code": "invalid",
    "message": "The request is invalid — `details.field` names the field when there is one."
  }
}