Start an outbound task
start_taskStart or resume dialling an outbound task. This action itself does not deduct credit: before each dial the task reserves its maximum estimated cost, and an attempt actually placed follows normal agent-call billing; final task spend is reconciled from the recorded call price. Fails with engine_required when the agent's provider is not engine, and with agent_no_number when the agent has no number of its own: tasks and campaigns call only from the agent's own number (assign one with update_agent numberE164). revision must match the current task. confirmedRecipients and confirmedBudgetHal must equal the ACTUAL fresh values from get_task; a mismatch is rejected and nothing starts. Tell the user the recipient count, attempt limit and budget and get explicit agreement first. With a monthly spending cap set by the customer (see get_spend_cap) and reached this month, this fails with spend_cap_reached (HTTP 402): nothing is charged and retrying will not help, so tell the customer, who can raise or remove the cap (set_spend_cap, clear_spend_cap) or wait for the next month. Same data as POST /v1/tasks/{id}/start (response schema in /openapi.json).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"revision": "<revision>",
"confirmedRecipients": "<confirmedRecipients>",
"confirmedBudgetHal": "<confirmedBudgetHal>"
},
"name": "start_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the task to start, from list_tasks or get_task. Looks like task_9f3a2b7c4d1e. | |
| revision | Yes | Revision of the task as returned by get_task. The start is rejected with revision_conflict when it changed since - reload with get_task. | |
| confirmedBudgetHal | Yes | Budget in hellers (1/100 CZK) you are confirming with the user, read from get_task's budgetHal immediately before calling this. Must equal the task's actual budget, or the call is rejected with validation. | |
| confirmedRecipients | Yes | Recipient count you are confirming with the user, read from get_task's items array length immediately before calling this. Must equal the task's actual recipient count, or the call is rejected with validation. |