Stefanos
11/04/2025, 3:45 PMVapi Support Bot
11/04/2025, 3:46 PMStefanos
11/04/2025, 3:57 PMStefanos
11/04/2025, 4:08 PMVapi Support Bot
11/04/2025, 4:10 PMStefanos
11/04/2025, 4:11 PMVapi Support Bot
11/04/2025, 4:13 PMStefanos
11/04/2025, 4:38 PMVapi Support Bot
11/04/2025, 4:40 PMbash
curl -X PATCH https://api.vapi.ai/phone-number/YOUR_PHONE_NUMBER_ID \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"server": {
"url": "https://your-server.com/webhook",
"timeoutSeconds": 20
}
}'
This will configure your phone number to send call events (including the call ID) to your webhook as soon as a call starts.
Reference: [Setting Server URLs](https://docs.vapi.ai/server-url/setting-server-urls)
Sources:
- [Setting Server URLs](https://docs.vapi.ai/server-url/setting-server-urls)
- [Update Phone Number API](https://docs.vapi.ai/api-reference/phone-numbers/update?explorer=true)Stefanos
11/05/2025, 2:18 PMVapi Support Bot
11/05/2025, 2:19 PMcall-started event using the CLI. Update your listener command as follows:
bash
vapi listen --forward-to http://localhost:3000/webhook --filter "call-started"
This will ensure your webhook is triggered only for the call-started event, preventing multiple hits per call.
Reference: See event filtering in the [webhook CLI documentation](https://docs.vapi.ai/cli/webhook).
Source:
- [Vapi CLI Webhook Documentation](https://docs.vapi.ai/cli/webhook)Stefanos
11/05/2025, 2:21 PMVapi Support Bot
11/05/2025, 2:22 PMcall-started event) directly from the VAPI UI, or are you open to using the CLI for this filtering? This will help me provide the most relevant guidance for your setup.
Source:
- [Vapi CLI Webhook Documentation](https://docs.vapi.ai/cli/webhook)Stefanos
11/05/2025, 2:23 PMVapi Support Bot
11/05/2025, 2:25 PMcall-started) directly from the interface.
All events are sent to your configured server URL without filtering options in the UI. If you need event filtering, this can only be done using the CLI with the --filter flag at this time.
For updates or feature requests, you may want to follow Vapi's changelog or contact support.
[See webhook CLI documentation for details](https://docs.vapi.ai/cli/webhook)
Source:
- [Vapi CLI Webhook Documentation](https://docs.vapi.ai/cli/webhook)Chiranjeet Mishra
11/05/2025, 6:19 PM