Issues creating inbound calls using API
# support
d
Hi 'im trying to create inbound calls with the post /call endpoint but i keep running into errors. heres an example of my payload now { "assistantId": "a2adb943-b06e-4510-a4fd-7b6e59651111", "phoneNumberId": "8ebf2fd6-9e72-4397-b42f-aeb18455111", "customer": { "sipUri": "sip:+11111111111@sip.twilio.com" } } but im getting a { "message": "Vapi Numbers Can't Dial Outbound Yet.", "error": "Bad Request", "statusCode": 400 } can anyone help me out? the API docs are not clear enough about how to configure an inbound call creation
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
v
You cannot create inbound calls using the POST /call endpoint. Instead, associate your Twilio number with your Vapi assistant and configure Twilio to forward calls to your Vapi SIP URI. For example, set your Twilio SIP trunk's origination URI to
sip:YOUR_PHONE_NUMBER@sip.vapi.ai
and ensure your assistant is linked to that number in Vapi:
Copy code
bash
# Example: Twilio SIP trunk origination URI
sip:+11234567890@sip.vapi.ai
This will route inbound calls to your Vapi assistant automatically. [See the Vapi SIP/Twilio integration guide for details.](https://docs.vapi.ai/advanced/sip/twilio) Source: - [Vapi SIP/Twilio Integration Guide](https://docs.vapi.ai/advanced/sip/twilio)
c
Inbound calls are created by calling the phone number that the assistant is assigned to.
5 Views