ivanprog00
09/18/2025, 2:09 PMVapi Support Bot
09/18/2025, 2:11 PMjs
app.post("/inbound_call", async (req, res) => {
const caller = req.body.Caller;
const response = await axios.post("https://api.vapi.ai/call", {
phoneNumberId: PHONE_NUMBER_ID,
phoneCallProviderBypassEnabled: true,
customer: { number: caller },
assistantId: ASSISTANT_ID,
}, {
headers: { Authorization: `Bearer ${PRIVATE_API_KEY}` }
});
const returnedTwiml = response.data.phoneCallProviderDetails.twiml;
return res.type("text/xml").send(returnedTwiml);
});
This lets you manually control the inbound call and connect it to Vapi as desired.
[See full example in the documentation.](https://docs.vapi.ai/calls/call-handling-with-vapi-and-twilio)
Source:
- [Call Handling with Vapi and Twilio](https://docs.vapi.ai/calls/call-handling-with-vapi-and-twilio)ivanprog00
09/18/2025, 2:15 PM@vapi-ai/server-sdk, and the field phoneCallProviderBypassEnabled does not exist. Is this field available only via API?Vapi Support Bot
09/19/2025, 2:17 PMChiranjeet Mishra
09/22/2025, 1:59 PM44.229.228.186 and 44.238.177.138.
- Use [this guide for detailed instructions](https://docs.vapi.ai/advanced/sip/twilio).
2. **Inbound SMS Setup**:
- Ensure your Twilio number is from the US and has SMS capabilities.
- Configure the Twilio Messaging webhook through Vapi for auto-start chat sessions.
- More information is available [here](https://docs.vapi.ai/phone-numbers/inbound-sms).
3. **Call Management**:
- Use the Vapi API to make calls or manage phone numbers.
- For call setup, include your assistantId and phoneNumberId in the API requests.
- Refer to [this link](https://docs.vapi.ai/api-reference/calls/list) for additional configurations.
If you have specific questions or encounter any issues, feel free to provide more details, and I'll be happy to assist further.rocket
10/08/2025, 7:03 PMChiranjeet Mishra
11/03/2025, 10:47 PM