In calllog, 'customer phone number' colum has i/c ...
# support
n
In call_log, 'customer phone number' colum has incoming calling number, how to get this number to pass to webhook url as query parameter
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
To pass the incoming customer phone number to your webhook as a query parameter, extract it from the call data like this:
Copy code
javascript
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)
2 Views