HTTP API
All endpoints are served from the configured driver host.Common Printer Target
Printer-targeting endpoints requireip_address and port.
vendor_id and product_id are accepted for client compatibility. The current network print path targets printers by ip_address and port.
POST /print
Queues a print job and returns immediately.| Field | Required | Notes |
|---|---|---|
ip_address | Yes | Printer IP address. |
port | Yes | Printer TCP port, usually 9100. |
chunks | Yes | Non-empty array of base64 ESC/POS chunks. |
beep | No | Adds the configured beep sequence after print/cut. |
runAt | No | Millisecond timestamp, numeric string, or parseable date string. Future values delay the BullMQ job. |
| Status | Error |
|---|---|
400 | Missing printer address |
400 | Missing print data |
400 | Invalid runAt timestamp |
POST /status
Returns cached or live printer status.- If the queue has waiting, active, or delayed jobs, status returns cached state with
busy: true. - If the queue is idle, the driver can probe the printer.
source: "probe"means a live socket check was performed.source: "cache"means the response came from stored state and queue counts.
POST /beep
Queues the beep sequence for a printer.POST /cash-drawer
Queues the ESC/POS cash drawer pulse command.GET /health
Returns process health and build version.GET /queue-status
Returns known printer queues.GET /mesh-status
When mesh is enabled:GET /ca.crt
Available when HTTPS is enabled. Downloads the CA certificate asplato-printer-ca.crt.
WS /mesh
PeerJS signaling endpoint mounted whenfeatures.meshEnabled is true.