https://retellai.com/?utm_source=discord&utm_medium=seo logo
is there a way i can trigger an outbound call from...
# ❓・ai-evy-support
d
@AI Evy is there a way i can trigger an outbound call from an agent? I want to test webhook address
a
Thanks for tagging me @Daniel D. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can trigger an outbound call using the Create Phone Call API. [(1) ]() Requirements: - A phone number purchased from or imported to Retell (
from_number
) - The destination number in E.164 format (
to_number
) - Your API key for authorization Example code:
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
}) ;
console.log(registerCallResponse) ;
Before making calls, you must bind an outbound agent to your phone number. To monitor calls via webhooks, you can set up webhooks to receive notifications for: - **Call Started**: When the call connects - **Call Ended**: Final status and duration - **Call Analyzed**: Transcript and analysis ready You can also test outbound calls directly from the dashboard by clicking "Make an outbound call" and entering the phone number with country code. [(2) ]() For webhook setup details, see the [Webhook Setup documentation]() . [(1) ]()
​ To learn more, see the sources I considered: [[1] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) [[2] How can I create an outbound call](https://retell.discourse.group/t/how-can-i-create-an-outbound-call/132) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
I need an IDE to trigger the call right?
@AI Evy I need an IDE to trigger the call via API? I just want to make a real call from retell
a
Thanks for the follow-up, @Daniel D. I'll get back to you soon.
### Answer No, you don't need an IDE. You can test outbound calls directly from the Retell dashboard by clicking "Make an outbound call" and entering the phone number with country code. [(1) ]() , [(2) ]() This lets you make a real call without writing any code or using an API client. If you want to test your webhook address specifically, make a call from the dashboard and your configured webhook will receive the call events (call.started, call.ended, call.analyzed) . [(1) ]()
​ To learn more, see the sources I considered: [[1] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) [[2] How can I create an outbound call](https://retell.discourse.group/t/how-can-i-create-an-outbound-call/132) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.