---
title: "Claim"
method: POST
path: "/api/print/agent/claim"
tags: ["print-agent"]
---

# Claim

`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)
- URL: `https://api.pigeonly.com/api/print/agent/claim`
- Auth: none declared

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`).

## Headers

- `authorization` string, nullable

## Request body

- ClaimBody, nullable: 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 `200`

Successful Response

- ClaimResponse
  - `job` object, nullable, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-04** `079ad302143f`: 1 info
  - added the new optional request property `anyOf[subschema #1: ClaimBody]/press_equipment_id`
- **2026-10-17** `63997a83a858`: 1 info
  - added optional request body

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/print/agent/claim/post.md)

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
