print-agent

Take the next job this machine can print, or nothing.

Answers 200 with job: null when there is no work, rather than 204 or an error: an idle floor is the normal case, and an agent polling every few seconds should not have to treat "nothing to do" as an exception.

⛔A CLAIM THE AGENT DOES NOT HOLD IS GIVEN BACK FIRST (Frederick, 2026-10-16, #5385). An agent that sends holding asks for work only when it has none in its hands, so any other job still shown as claimed by it was answered into the void (a 524 from the edge): put back now, in the same request, so this very claim can hand it out again (agent_holding.give_back_unheld).

post/api/print/agent/claim

Request

  • Base URL
    https://api.pigeonly.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Headers

authorization, string nullable

Request body

ClaimBody nullable required

What a running agent says with a claim (agent 1.19, 2026-10-16, #5385): holding, the ids of the jobs it was given and has not yet told Roost it handed to a press. Absent (an older agent, or a --once run) means "do not give anything back".

holding, string[] nullable
press_equipment_id, string uuid nullable

Response

Successful Response

ClaimResponse required
job, object nullable required

Changes