stateMessage.
Unknown option names are rejected with
400 invalid_request. Raw jobs ignore options (see Raw printing).
If an option has a value the printer cannot honour, the job still prints and stateMessage explains what was dropped, for example duplex ignored: printer cannot print two-sided. Read stateMessage on the finished job if the output differs from what you asked for.
Reading capabilities
GET /v1/printers/{id} returns what the printer supports in capabilities. The agent reads it from the operating system, so it reflects the installed driver.
papers maps each paper name to [width, height] in tenths of a millimetre, so "A4": [2100, 2970] is 210 by 297 mm. bins, dpis and medias list the values you can pass to bin, dpi and media. A paper dimension can be null when the driver does not report it, as for a roll of receipt paper ("80mm Receipt": [800, null], 80 mm wide with no fixed length). extent is [[minWidth, minHeight], [maxWidth, maxHeight]] in the same unit and gives the range of custom paper sizes the printer accepts, or null. printrate is the printer’s rated speed, for example 30 pages per minute, or null. duplex, color and collate say whether the printer supports them, copies is the largest copy count it accepts, and nup lists the pages per sheet it offers.
Printer defaults and custom paper sizes
Set defaults once and send only what differs per job. In the dashboard, open the printer and edit its defaults. Over the API, usePATCH /v1/printers/{id} with the admin scope:
customPapers adds paper sizes the printer does not list, such as label stock. width and height use the same unit as papers, tenths of a millimetre, so the example above is 100 by 150 mm. Once saved, pass the name as paper. A printer accepts up to 50 custom papers. Sending customPapers replaces the whole list.
PATCH /v1/printers/{id} also sets displayName, enabled (the live switch) and remarks.
Platform notes
nupworks on macOS and Linux only.- On Windows, PDFs print through SumatraPDF.
pages,copies,fit_to_page,rotate(90 and 270),color,duplex,paperandbinare honoured.dpi,media,collate,nupandrotate180 are ignored, so a job that asks forrotate180 prints without rotation. Each ignored option adds a warning tostateMessage. dpi,mediaandcollateapply on macOS and Linux.- Paper names come from the operating system and the driver. Read
papersbefore you hard-code a name.