# Create Turn Decision
Purpose: API operation reference for `POST /v1/turns`.
Last updated: 2026-10-14

## Endpoint

```txt
POST /v1/turns
```

## Description

Upload one clip of a caller's audio as multipart form data with the model field. Send what the agent last said as `agent_text` to give the model context.

Take one end-of-turn reading on an uploaded clip and return whether the caller has finished the turn.

## Request body

Content type: `multipart/form-data`

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `model` | Yes | `string` | model name to route to (may be an alias; rejected if blank) |
| `agent_text` | No | `string \| null` | what the agent last said; omitted or empty sends no context |
| `eot_threshold` | No | `number \| null` | probability that ends the turn; omitted uses the model's default |
| `file` | Yes | `string` | the audio clip, ending where the turn is judged |

## Success response

Status: `200`
Content type: `application/json`

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `object` | No | `"turn.decision"` | object type |
| `model` | Yes | `string` | the model id as the caller sent it |
| `probability` | Yes | `number` | probability that the caller has finished the turn |
| `ended` | Yes | `boolean` | whether probability reached eot_threshold |
| `eot_threshold` | Yes | `number` | threshold the decision compared probability against |
| `usage` | Yes | `TurnUsage` | what the decision bills |

## Error responses

| Status | Description |
| --- | --- |
| `400` | The request was malformed, or a field value was invalid. |
| `401` | Missing, invalid, or expired credentials. |
| `402` | The account is out of credit, has a plan invoice still unpaid, or has billing still being set up. |
| `403` | Authenticated, but not a member of the requested organization. |
| `404` | The requested model does not exist or is not available. |
| `413` | The request body, or an inline media part, exceeds the accepted size. |
| `429` | Rate limit exceeded. |
| `500` | The model backend, or the gateway itself, failed while serving the request. |
| `502` | The model backend answered with something the gateway could not serve. |
| `503` | Temporarily unavailable; retry after `Retry-After` when present. |
| `504` | The model backend did not respond in time. |

## Related links

- [Markdown reference](https://sprag.ai/docs/api/turns.md)
- [OpenAPI spec](https://sprag.ai/openapi.json)
- [Authentication](https://sprag.ai/docs/authentication.md)
- [Errors](https://sprag.ai/docs/errors.md)
