---
title: "Stop Agent Turn"
method: POST
path: "/api/agent/stop"
---

# Stop Agent Turn

`POST /api/agent/stop`

## Request

- Base URL: `https://pozeidon.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://pozeidon.ai/api/agent/stop`
- Auth: none declared

Actually cancel the live turn on this session.

Distinct from a client disconnect: event_stream() above is a thin,
disposable consumer that sse_starlette may cancel freely, while the
producer (_ACTIVE_TURNS) keeps running by design so a flaky network
doesn't kill a real answer. The Stop button used to only close the
client's own connection — the turn kept generating/calling tools in the
background regardless, which is why a "stopped" turn could still show
up as stream_state='live' 15 minutes later. This is the real cancel.

## Request body

- AgentStopIn
  - `session_id` string, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pozeidon/apis/pozeidon-demo.md) · [All operations](https://skmtc.dev/pozeidon/apis/pozeidon-demo/llms.txt) · [OpenAPI document](https://skmtc.dev/pozeidon/apis/pozeidon-demo/revisions/de288dc26752?raw)
