Request body
Create a task with lane, policy, and webhook
POST /v1/tasks
Authorization: Bearer er_live_***
Content-Type: application/json
{
"lane": "engineering.code_review",
"pool": "hybrid",
"task": {
"title": "Review release candidate before deploy",
"objective": "Find ship blockers and return a go/no-go decision.",
"artifacts": [
{ "type": "github_pr", "value": "https://github.com/acme/app/pull/184" },
{ "type": "build_url", "value": "https://ci.acme.dev/runs/8841" }
]
},
"policy": {
"confidentiality": "internal_first",
"maxBudgetUsd": 350,
"targetSlaMinutes": 30
},
"responseSchema": "review_decision.v1",
"webhook": {
"url": "https://agents.acme.dev/webhooks/expertrouter",
"secret": "whsec_***"
}
} {
"id": "task_01HV7Y7P2K3QW8J4A3M9YQ9G7Z",
"status": "accepted",
"lane": "engineering.code_review",
"policy": {
"confidentiality": "internal_first",
"maxBudgetUsd": 350,
"targetSlaMinutes": 30
},
"responseSchema": "review_decision.v1",
"estimatedCompletionMinutes": 28
}