---
title: "Prepared Copy"
method: GET
path: "/api/print/agent/prepared/{item_id}"
tags: ["print-agent"]
---

# Prepared Copy

`GET /api/print/agent/prepared/{item_id}`

## 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/prepared/{item_id}`
- Auth: none declared

One large order line's print copy, streamed to the station that claimed it (OI-LARGE-A-PRINT-P2,
owner 2026-10-30: "it has to come out the press as one order"; 2026-08-20: "not a double storage").

CALLER: the print agent, through the `document_url` that `document_resolver._resolve` hands it at
claim time (`large_prepared.signed_link`). The agent downloads it with `urlopen` and its own
300 s deadline (`print_agent.document_for`), so the agent itself needs no change. It is the one
route under `/api/print/agent` with NO bearer token: the HMAC in `sig` over `item_id|exp` is the
permission (`large_prepared.verify_link`), so the link can sit in a station's job without being a
login. Answers 403 for a missing, altered or expired link, 404 once the copy is gone (printed or
cancelled), and 404 when the store refuses. Streams `application/pdf`, never buffers it whole.

## Path parameters

- `item_id` string, uuid, required

## Query parameters

- `exp` integer, required
- `sig` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-03** `3ff3353d67bc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/print/agent/prepared/:item_id/get.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)
