---
title: "Record Turn Result"
method: POST
path: "/api/rooster/executive/turns/{turn_id}/result"
tags: ["rooster-executive-turns"]
---

# Record Turn Result

`POST /api/rooster/executive/turns/{turn_id}/result`

## 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/executive/turns/{turn_id}/result`
- Auth: none declared

File the run's cost, store the answer, end the turn `done`, write its
`rooster_turns` row and wake the parked work row. A late answer (not claimed UNDER THE
DIGEST ECHOED) is 409 and files nothing: the cost row, the ending, the provenance row
and the wake share ONE transaction. An empty answer fails the turn, files a failed
call, wakes the work (it will read `failed`), and is 422.

## Path parameters

- `turn_id` string, uuid, required

## Request body

- ExecutiveTurnResultRequest: The seat's final message and what the run cost, from the CLI's own usage block.
  - `latency_ms` integer
  - `turns` integer, nullable
  - `input_tokens` integer, nullable
  - `cache_creation_tokens` integer, nullable
  - `cache_read_tokens` integer, nullable
  - `output_tokens` integer, nullable
  - `packet_digest` string, required
  - `output` string, required
  - `model` string, required
  - `provider` string

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