---
title: "Write Direction Line"
method: POST
path: "/api/rooster/today/direction/agent-line"
tags: ["rooster"]
---

# Write Direction Line

`POST /api/rooster/today/direction/agent-line`

## 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/rooster/today/direction/agent-line`
- Auth: none declared

The write half: a dumb persist of the line the AGENT composed, upserted
onto direction_lines' existing (principal_id, for_date) key. Calls NO
model. Blank text is refused (422) rather than persisted -- a blank line
renders as an empty headline on Today with no hint anything failed.

## Request body

- AgentDirectionRequest
  - `principal_id` string, uuid, required
  - `text` string, required
  - `for_date` string, date, nullable
  - `agent_provider` string, nullable
  - `agent_model` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[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)
