# Get one turn

`GET /o/{org}/p/{project}/sessions/{session}/turns/{turn}`

One turn's status and result. A follow-up's `turn.id` names its turn from the moment it is
sent, so a caller waits on this read rather than on the session, which reads the turn before
it until a queued follow-up starts.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `org` | path | string | yes | The org's slug or id. A caller with no role in the org gets `404`. |
| `project` | path | string | yes | A Project's handle (name) or id, resolved inside `{org}` — OR the reserved sentinel `_` meaning "no Project" (a direct-repo / repo-less dispatch on `POST`; "no Project constraint, resolve by session id alone" everywhere else). A real handle that doesn't match the session's actual Project is `404`.  |
| `session` | path | string | yes | The session's full id (`execution_id`). |
| `turn` | path | string | yes | A turn id from GET …/turns, or `turn_id` from a sent follow-up. |

## Example request

```bash
curl "https://api.phoenix.so/o/$RUSH_ORG/p/_/sessions/$SESSION_ID/turns/$TURN" \
  -H "Authorization: Bearer $RUSH_API_KEY"
```

```typescript
const org = process.env.RUSH_ORG;
const sessionId = process.env.SESSION_ID;
const turn = process.env.TURN;

const res = await fetch(`https://api.phoenix.so/o/${org}/p/_/sessions/${sessionId}/turns/${turn}`, {
  headers: {
    Authorization: `Bearer ${process.env.RUSH_API_KEY}`,
  },
});

console.log(res.status, await res.json());
```

```python
import os

import requests

org = os.environ["RUSH_ORG"]
session_id = os.environ["SESSION_ID"]
turn = os.environ["TURN"]

res = requests.get(
    f"https://api.phoenix.so/o/{org}/p/_/sessions/{session_id}/turns/{turn}",
    headers={"Authorization": f"Bearer {os.environ['RUSH_API_KEY']}"},
)

print(res.status_code, res.json())
```

## Responses

### 200

The turn.

- `id` (string, required)
- `ordinal` (integer | null, required): 1 for the prompt that started the session, then one per follow-up in the order they ran. Null for a follow-up waiting in line (`queued`) or one that failed there: it takes its place when it starts.
- `status` (string, required, one of `queued`, `running`, `completed`, `needs_review`, `failed`, `cancelled`, `expired`, `interrupted`): `queued` is a follow-up sent while a turn was running, waiting for its turn.
- `prompt` (string | null, required)
- `result` (any, required): The turn's answer, as GET …/sessions/{session}/result returned it when the turn ended.
- `error_code` (string, optional): Why the turn failed: the run's failure code (`RUN_FAILED`, `HARNESS_EXITED`, `TOKEN_LIMIT_REACHED`, …), or for a queued follow-up that never ran, why (`ATTACHMENT_EXPIRED`, `TASK_TERMINAL`, `DELIVERY_RETRIES_EXHAUSTED` or the delivery refusal). A turn that ran and failed spent its run time, so resend only one that never ran. Absent when the turn did not fail, and on turns that ran and ended before migration 408.
- `started_at` (string, required): When the turn started, or for a queued one when it was sent.
- `ended_at` (string | null, required)
- `input_tokens` (integer, optional): The turn's own tokens, as its harness reported them when it ended. Absent until then, and on a turn that reported none.
- `output_tokens` (integer, optional)
- `cache_read_tokens` (integer, optional)
- `reasoning_tokens` (integer, optional)
- `total_cost_usd` (number, optional): What the provider billed for this turn's model calls so far, from the ledger the session's `total_cost_usd` is settled from: each call counts toward the turn that had started last when the call was logged, so once the session has finished its turns add up to its `total_cost_usd`. `0` for a run on a person's own model account, which they pay the provider for. Absent on a turn that never started (`queued`, or failed or cancelled in the queue).

### 401

No bearer, an unknown, revoked or expired one, or an API key on a route keys cannot call.

### 404

No such resource for the caller, including one in an org the caller is not in or a Project that is private to someone else.

### 429

The account is over its request budget, 1,800 a minute shared by the person's API keys and console on every API host (`RATE_LIMITED`). The error names the limit. Wait `Retry-After` seconds.

## Example response (200)

```json
{
  "id": "3f6c1e2a-8b4d-4c1e-9a7f-2d5b6e8c0a14",
  "ordinal": 1,
  "status": "queued",
  "prompt": "string",
  "result": {},
  "error_code": "string",
  "started_at": "2026-10-06T12:00:00Z",
  "ended_at": "2026-10-06T12:00:00Z",
  "input_tokens": 0,
  "output_tokens": 0,
  "cache_read_tokens": 0,
  "reasoning_tokens": 0,
  "total_cost_usd": 0
}
```
