POST /api/zeq/agent/kill/:id
Stops a running agent. Writes a kill transition to the entangled state so the
shutdown is auditable; sets agent.alive = false. Subsequent ticks
return 409 agent_done.
Auth
Authorization: Bearer zeq_ak_…. Owner of the agent's chain only.
Cost
0 ZEQ. Lifecycle bookkeeping — but still writes an entangled state row so the kill is forever recorded.
Request
curl -X POST https://zeqapi.com/api/zeq/agent/kill/5b7a9c12-... \
-H "Authorization: Bearer zeq_ak_..."
Response · 200 OK
{
"ok": true,
"agent_id": "5b7a9c12-...",
"killed_at_zeqond": "2289003914",
"transition_id": "tx_..."
}
Errors
| Status | Code | Cause |
|---|---|---|
404 | agent_not_found | UUID doesn't resolve. |
409 | agent_already_dead | Already killed. Idempotent — no charge. |