Kill switch
Stop one session, one owner's sessions or every session of the organization now.
Kill sessions
The kill switch: stop one session, an owner's sessions or every session of the org now.
Bumps each session's epoch and inserts a relay event in the same transaction, so the relay closes the session's connections by tag at once; the worker gets Stop {kill} at its next heartbeat and closes the session's egress proxy; a partitioned worker's proxy fails closed 30 s after its last renewal.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Idempotency-Key | string | Optional | makes a retried call act once (every mutating MCP tool sends one) |
Request body
allowner- a principal subject
reasonsession_id
Response
killed
curl -X POST "$CIRESK_API/v1/dev/kill" \
-H "Authorization: Bearer $CIRESK_KEY" \
-H "Idempotency-Key: 71de3838-8b30-457a-870d-5568b603b70f" \
-H "Content-Type: application/json" \
-d '{
"all": true,
"owner": "user:[email protected]",
"reason": "idle",
"session_id": "devs_0166ba8e973a3df1b173b30df1cb8f2f"
}'