---
title: "Agent Kill"
method: POST
path: "/api/v1/agents/{session_id}/kill"
---

# Agent Kill

`POST /api/v1/agents/{session_id}/kill`

## Request

- Base URL: `http://127.0.0.1:8052`
- URL: `http://127.0.0.1:8052/api/v1/agents/{session_id}/kill`
- Auth: none declared

Request that an agent session be killed.

Writes a ``.kill`` signal file that the orchestrator picks up on
its next tick.

## Path parameters

- `session_id` string, required

## Response `200`

Successful Response

- AgentKillResponse: Response for POST /agents/{session_id}/kill.
  - `session_id` string, required
  - `kill_requested` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/bernstein/apis/bernstein-task-server.md) · [All operations](https://skmtc.dev/bernstein/apis/bernstein-task-server/llms.txt) · [OpenAPI document](https://skmtc.dev/bernstein/apis/bernstein-task-server/revisions/2a20a34ad2eb?raw)
