K Rudy
03/11/2026, 7:31 PMAI Evy
03/11/2026, 7:31 PMAI Evy
03/11/2026, 7:31 PMPOST /v2/create-phone-call
Full URL: `
Here's an example using the Retell SDK:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
}) ;
console.log(phoneCallResponse.agent_id) ;
Required parameters include from_number (a number you own in E.164 format) and to_number (the number you want to call in E.164 format) .AI Evy
03/11/2026, 7:31 PMAI Evy
03/11/2026, 7:31 PMK Rudy
03/11/2026, 7:32 PMAI Evy
03/11/2026, 7:32 PMAI Evy
03/11/2026, 7:32 PMjavascript
{
"from_number": "+14157774444",
"to_number": "+12137774445",
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}
}
The retell_llm_dynamic_variables field accepts key-value pairs where all values must be strings. [(2) ]() You can then reference these variables in your agent's prompts, begin message, tool configurations, or other settings using the {{variable_name}} syntax.
For example, in your prompt you could write: "Hello {{customer_name}}, thanks for calling!"
Important note: All values in retell_llm_dynamic_variables must be strings - numbers, booleans, or other data types are not supported.AI Evy
03/11/2026, 7:32 PMAI Evy
03/11/2026, 7:32 PMK Rudy
03/11/2026, 7:33 PMAI Evy
03/11/2026, 7:33 PMAI Evy
03/11/2026, 7:33 PMPOST /v2/create-phone-call) , the call is launched immediately by default [(1) ]() .
The API initiates the outbound call as soon as the request is processed . There is no built-in scheduling parameter in the single call API endpoint .
If you need to schedule calls for a future time, you would need to use Batch Calling instead [(2) ]() [(3) ]() . Batch Calling offers two options :
- **Send Now**: Dispatch calls immediately
- **Scheduled Time**: Send calls at a scheduled time
For single API calls via /v2/create-phone-call, the call initiates right away [(1) ]() .AI Evy
03/11/2026, 7:33 PMAI Evy
03/11/2026, 7:33 PM