Tasks
Start from a task spec
Start from a task.json spec with no planning turn. Without task, same as POST /task.
post/task/start
Request
- Base URLhttps://api.autumn.ai
- URLhttps://api.autumn.ai/task/start
- Auth
- API key in header X-API-Key
- or HTTP bearer
Request body
Example request
{
"task": {
"brief": "Find 10 Series A AI security companies in the US.",
"output": {
"id": "ai-security-companies",
"kind": "research",
"path": "outputs/ai-security-companies.jsonl",
"schema": {
"company_name": "string",
"funding_stage": "string",
"source_urls": "array[string]",
"website": "string"
},
"schema_order": [
"company_name",
"website",
"funding_stage",
"source_urls"
],
"target_count": 10
}
}
}Response
Task accepted. Store task_id.
Example response
{
"task_id": "8fab6f34",
"name": "Series A AI security companies",
"status": "execute",
"phase": "execute",
"activity": "executing",
"output_count": 10,
"poll_after_s": 5,
"status_url": "/task/8fab6f34/state",
"task_url": "/task/8fab6f34",
"output_url": "/task/8fab6f34/output",
"stream_url": "/task/8fab6f34/stream",
"queue": {
"position": 3,
"eta_s": 240
}
}Changes
No recorded changes to this operation across all 1 revision of this API.