POST /tasks
Body
| Field | Type | Required | Description |
|---|---|---|---|
goal | string | ✅ | What the task should accomplish |
taskType | string | Optional | one_shot, recurring, continuous, triggered |
schedule | object | Optional | { interval: "2 days", count: 10 } |
approval | object | Optional | { mode: "first_n", firstN: 3 } |
Response
Tasks are typically created automatically by the agent engine when it detects a
long_running intent. Use this endpoint for programmatic task creation.