Start a call
make_callStart an outbound phone call to a Czech or Slovak number, or to the country of the agent's calls and SMS number (capabilities.outboundTo), as to. Pass exactly ONE of three parameters: agentId (the call is handled by your voice agent), from (a plain bridge connecting from and to with no agent), or systemPrompt (a trial call with no number of your own - a single request, no need to buy a number or set up an agent first; the call goes out from a shared volai demo number and speaks according to the instructions you give, is billed normally including the agent surcharge, has a stricter daily and total limit than a real agent, and the feature may be temporarily disabled). Never more than one, never none. An agent that has a calls and SMS number places its calls from that number: only to Czech (+420) numbers (any other number returns destination_not_allowed), plus the number's own country once capabilities.outboundTo of that number lists it, one outbound call at a time per number (a second one returns capacity_busy, retry after a short wait), and from cannot be a calls and SMS number (unsupported_for_number_type). A stopped account or reached monthly spend cap returns insufficient_credit or spend_cap_reached; neither is fixed by retrying. Only with agentId can you also send variables (custom dynamic variables for the agent, at most 20 keys, key up to 64 characters, value up to 512 characters - the keys attempt_id, caller_number, called_number, trial_prompt and trial_first_message are reserved and get silently overwritten; a key starting with system__ or volai_ is rejected, both prefixes are reserved), ringingTimeoutSecs (5 to 60, default 25), and maxDurationSecs (a provider-enforced call duration cap in whole seconds, 30 to 300; check get_agent_call_capabilities first and inspect the returned effective value). A campaign call must pass both campaignBudgetId and a unique campaignCallId obtained/created for this attempt; duplicate ids return the existing call or a pending error and never place a second dial. The immutable budget reserves the maximum current-rate net cost before the provider request, holds uncertain dispatches and settles from actual billing. A campaign scope requires scopedContentDeletion and the matching engine capability. Only with systemPrompt (at most 1200 characters) can you also send an optional firstMessage (at most 300 characters) and ringingTimeoutSecs with a lower ceiling (5 to 30) - the response for this variant also carries trial: true and from. With from (bridge), agent-only parameters are rejected or ignored as described by validation. Use dryRun: true to get the price first and show it to the user before calling. maxChargeHal covers the agent call only, not a transfer to a human. Same data as POST /v1/calls (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": {
"to": "<to>"
},
"name": "make_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination phone number in E.164 format, for example +420123456789. Without a country code it is read as a number of the account's country (an agent on a number in another country needs the country code). Do-not-call numbers are rejected. | |
| from | No | Number you will answer on, in E.164 format with the country code, for example +420777123456 - it rings first and to is dialled once you pick up. Any Czech or Slovak number, it need not belong to your account. Pass exactly one of agentId, from or systemPrompt. | |
| dryRun | No | Default false. With true all checks run but nothing is dialed or charged; returns pricing in hellers. maxChargeHal is set only when maxDurationSecs is passed, otherwise null. Works with agentId or systemPrompt, not with from or campaign fields. | |
| stream | No | Live audio of each side over WebSocket (PCM 16-bit mono). With from (a bridge) or agentId (an agent on the voice engine, no campaign fields), not with systemPrompt, only on accounts where volai enabled it. Verify the Bearer JWT with your stream secret (create_stream_secret). | |
| agentId | No | Id of the agent that leads the call, from list_agents (ag_9f3a2b7c4d1e). Pass exactly one of agentId, from or systemPrompt. | |
| variables | No | Custom dynamic variables for the agent, name to value: max 20 keys, key up to 64 chars, value up to 512. Used only with agentId. attempt_id/caller_number/called_number/trial_prompt/trial_first_message are overwritten; system__/volai_ prefixes are rejected. | |
| firstMessage | No | The trial agent's opening line, up to 300 characters. Used only together with systemPrompt; ignored with agentId or from. | |
| systemPrompt | No | Instructions for a one-off trial agent that needs no phone number or agent of your own, up to 1200 characters. The call goes out from a shared volai demo number. Pass exactly one of agentId, from or systemPrompt. | |
| campaignCallId | No | Unique stable id for this call attempt within campaignBudgetId; duplicate ids never dial twice. | |
| maxDurationSecs | No | Optional provider-enforced call duration cap in whole seconds, 30 to 300. Engine capability must be confirmed before dialing; inspect the returned effective cap. | |
| campaignBudgetId | No | Immutable campaign budget scope id. Must be paired with campaignCallId; do not omit for a budgeted campaign call. | |
| ringingTimeoutSecs | No | How long the callee's phone rings before the call is given up, in seconds, 5 to 60, or 5 to 30 with systemPrompt. Defaults to 25. Ignored with from. |