https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do I trigger one-off outbound calls
# ❓・ai-evy-support
r
@AI Evy how do I trigger one-off outbound calls
a
Thanks for tagging me @rjo26_68899. I'll look through relevant sources and get back to you shortly.
### Answer To trigger one-off outbound calls with Retell AI, you need to use the Create Phone Call API [(1) ]() . First, ensure you have: - A phone number with an outbound agent bound to it - Your Retell API key for authentication Here's how to make the call using the API:
Copy code
javascript
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) ]() .
​ To learn more, see the sources I considered: [[1] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) [[2] Create Phone Number](https://docs.retellai.com/api-references/create-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.