---
title: "Wait For Work"
method: POST
path: "/api/print/agent/wait-for-work"
tags: ["print-agent"]
---

# Wait For Work

`POST /api/print/agent/wait-for-work`

## 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/wait-for-work`
- Auth: none declared

Answer `work: true` the moment a job is queued for this agent's station, else `work: false` after `seconds`.

OWNER, 2026-11-17, at intake desk PGN-WS-05: "the label's supposed to be 1 second." Agent 1.108 calls this in
place of its idle 5 s sleep and claims at once on `true`, so the intake sticker leaves the desk's printer within a
second of the KEEP instead of up to 5.6 s later (`agent_wake`, ruling
2026-11-17-the-intake-sticker-prints-before-the-screen-turns-green). Holds no database connection while it waits
(`BriefConnection`): the hint comes over the process's one LISTEN connection.

## Headers

- `authorization` string, nullable

## Request body

- WaitBody, nullable: How long the agent will wait for work (agent 1.108): its own idle poll, never more than `agent_wake.MAX_WAIT_SECONDS`.
  - `seconds` number

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-18** `d2a77c0b4ba1`: 1 info
  - endpoint added

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