Reply to a task (same as POST /messages)
Authorization
ApiKeyAuth AuthorizationBearer <token>
API key from API Keys in the dashboard menu.
In: header
Path Parameters
id*string
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/tasks/string/message" \ -H "Content-Type: application/json" \ -d '{}'{ "ok": true, "task_id": "string", "answered": true}Reply to a task POST
Write to a task: JSON `{ "message": string, "files"?: [...] }` or multipart with `files`. It answers the question a `waiting_for_input` task is asking, reaches the agent while it works, or carries a finished task on. The task resumes within about a second; poll again.
The task's answer GET
The agent's final written answer, once the task has ended. The recommended read in production.