---
title: "Turn Failed"
method: POST
path: "/api/rooster/floor/turns/{turn_id}/failed"
tags: ["rooster-floor-turns"]
---

# Turn Failed

`POST /api/rooster/floor/turns/{turn_id}/failed`

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

The lane could not run this turn (no seat, a timeout, a nonzero exit). The turn
ends `failed` with `reason`, with `retry` goes back to `pending` while attempts
remain, and with `paused` goes back without spending an attempt. When a model ran
(`model` set) its spend is filed first as a failed `model_calls` row, before the
409 check, so a turn that is no longer ours still has its tokens counted. 409 when
the turn is not claimed (already done or reclaimed).

## Path parameters

- `turn_id` string, uuid, required

## Request body

- FailedRequest
  - `latency_ms` integer
  - `turns` integer, nullable
  - `input_tokens` integer, nullable
  - `cache_creation_tokens` integer, nullable
  - `cache_read_tokens` integer, nullable
  - `output_tokens` integer, nullable
  - `reason` string, required
  - `retry` boolean
  - `paused` boolean
  - `model` string, nullable
  - `provider` string
  - `claim` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-25** `a49a1d552415`: 1 info
  - added the new optional request property `claim`

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/rooster/floor/turns/:turn_id/failed/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)
