https://retellai.com/?utm_source=discord&utm_medium=seo logo
What's the API endpoint format for creating outbou...
# ❓・ai-evy-support
p
@AI Evy What's the API endpoint format for creating outbound calls?
a
Thanks for tagging me @proto._._. I'll look through relevant sources and get back to you shortly.
### Answer The API endpoint for creating outbound calls is:
Copy code
POST <https://api.retellai.com/v2/create-phone-call>
[(1) ]() , [(2) ]() , [(3) ]() Required parameters: [(1) ]() - `from_number`: Your Retell number in E.164 format (e.g.,
"+14157774444"
) - `to_number`: The destination number in E.164 format (e.g.,
"+12137774445"
) - `override_agent_id`: The agent ID to use for this call (e.g.,
"oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD"
) Example using the Retell SDK:
Copy code
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) ;
Authorization: You need to include your API key in the Authorization header as a Bearer token. Optional parameters include: - `metadata`: Store custom data like internal customer IDs - `retell_llm_dynamic_variables`: Inject dynamic variables into your prompts (e.g.,
{"customer_name": "John Doe"}
)
​ To learn more, see the sources I considered: [[1] How can I create an outbound call](https://retell.discourse.group/t/how-can-i-create-an-outbound-call/132) [[2] V2 create-phone-call endpoint returns 404 Not Found — API Access?](https://discord.com/channels/1186424376300679209/1384549347605221438) [[3] Is https://api.retellai.com/v2/create-phone-call endpoint working?](https://discord.com/channels/1186424376300679209/1399425818010194091) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
im trying to get my welcome node to know the first name from the meta form getting sent through zapier whats the best way to do this
a
Thanks for the follow-up, @proto._._. I'll get back to you soon.
p
@AI Evy im trying to get my welcome node to know the first name from the meta form getting sent through zapier whats the best way to do this
a
### Answer To pass the first name from your Meta form through Zapier to your Retell AI welcome node, use dynamic variables [(1) ]() . When creating the outbound call via the API, include the first name in the
retell_llm_dynamic_variables
parameter [(2) ]() . Then reference it in your welcome node prompt using the
{{variable_name}}
format [(1) ]() . Example API call structure:
Copy code
json
{
  "from_number": "+14157774444",
  "to_number": "+12137774445",
  "override_agent_id": "agent_id_here",
  "retell_llm_dynamic_variables": {
    "first_name": "John"
  }
}
[(2) ]() In your Zapier workflow, map the first name field from your Meta form to the
retell_llm_dynamic_variables.first_name
parameter when making the API call. Then in your welcome node's instruction or first message, use
{{first_name}}
to reference it [(1) ]() . For example: "Hi {{first_name}}, thanks for reaching out!" The dynamic variable will be injected into your prompt at runtime [(3) ]() , allowing your agent to personalize the greeting with the customer's first name.
​ To learn more, see the sources I considered: [[1] Discord message from @masanovets on 2024-11-20](https://discord.com/channels/1186424376300679209/1186462578310910112/1308747282241425418) [[2] Create Web Call](https://docs.retellai.com/api-references/create-web-call) [[3] Update Conversation Flow](https://docs.retellai.com/api-references/update-conversation-flow) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @proto._._. I'll get back to you soon.
p
@AI Evy can you respond and see pictures?
a
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
message has been deleted
### Answer I can respond to text-based questions about Retell AI, but I cannot view or analyze images, pictures, or screenshots. If you have a visual element you'd like help with (like a configuration screenshot, error message, or flow diagram) , please describe what you're seeing in text, and I'll do my best to assist based on that description. For questions about Retell AI's features, API endpoints, configuration, or troubleshooting, feel free to ask and I'll help using the available documentation.