rjo26_68899
10/19/2025, 4:53 PMAI Evy
10/19/2025, 4:53 PMAI Evy
10/19/2025, 4:54 PMjavascript
const registerCallResponse = await retell.call.createPhoneCall({
from_number: '+14157774444', // replace with the number you purchased
to_number: '+12137774445', // replace with the number you want to call
retell_llm_dynamic_variables: { // replace with the dynamic variables you want to send (optional)
name: 'John Doe',
blood_group: 'B+'
},
custom_sip_headers: { // replace with custom sip headers you want to send (optional)
X-Custom-Header: 'Custom Value'
}
}) ;
console.log(registerCallResponse) ;
The required parameters are :
- `from_number`: Your Retell number in E.164 format (e.g., +14157774444)
- `to_number`: The destination number in E.164 format (e.g., +12137774445)
Optional parameters include :
- `dynamic_variables`: For personalizing the call with specific data
- `custom_sip_headers`: For adding custom SIP headers
Before making calls, you must bind an outbound agent to your phone number . You can do this when creating a phone number or updating an existing one [(2) ]() .
For complete parameter documentation, see the Create Phone Call API Reference [(1) ]() .AI Evy
10/19/2025, 4:54 PMAI Evy
10/19/2025, 4:54 PM