nivaz
10/25/2025, 7:30 PMChiranjeet Mishra
10/25/2025, 7:30 PMVapi Support Bot
10/25/2025, 7:31 PMjavascript
const phoneNumber = req.body.call.from.phoneNumber;
const webhookUrl = `https://your-webhook.com/endpoint?customer_number=${encodeURIComponent(phoneNumber)}`;
// Now you can use webhookUrl to make your request
This will capture the incoming number and append it to your webhook URL as a query parameter for further processing.
According to the documentation, this is the recommended way to access the caller's number in your server endpoint.
Source:
- [Personalization with user information](https://docs.vapi.ai/assistants/personalization)