Stop a task
Authorization
ApiKeyAuth AuthorizationBearer <token>
API key from API Keys in the dashboard menu.
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/tasks/string/cancel"{ "ok": true, "status": "string"}Answer what a task waits on POST
Answer one item of `waiting_on`. For an approval the answer is `{ "outcome": "approved" | "changes" | "rejected", "comment"?: string }`: `changes` sends it back with the comment saying what to change, `rejected` stops the task; for a question, `{ "text": string }`.
Read a task's thread GET
Everything the task did, in order (messages, tool calls and results, questions, answers, corrections), after event `after`.