Sessions
Stop the agent
Cancels whatever the chat is currently working on. Idempotent — succeeds whether or not anything was running, so a stop racing a just-finished turn is harmless.
Cancels whatever the chat is currently working on. Idempotent — succeeds whether or not anything was running, so a stop racing a just-finished turn is harmless.
Authorization
api_key sessions:writeAuthorizationBearer <token>
An atk_-prefixed API key, created under Settings → API keys.
In: header
Scope: sessions:write
Path Parameters
session_id*string
Session id
Format
uuidResponse Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/stop"{ "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "created_at": "2019-08-24T14:15:22Z", "depth": 0, "factcheck_enabled": true, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "parent_kind": "string", "parent_schedule_id": "976bdf23-5dc8-4474-a778-a91df331c3aa", "parent_session_id": "332c228e-f2af-4ec3-b6d2-c6dd59f66c36", "parent_user_id": "d5c8e834-f292-42c2-b18e-c80e5d13a7f3", "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9", "running": true, "source_card_id": "3a228978-b733-49f5-a345-691ace7056d4", "status": "string", "title": "string", "updated_at": "2019-08-24T14:15:22Z"}