David
05/01/2025, 1:12 PMVapi Support Bot
05/01/2025, 1:13 PMPOST /phone-number endpoint. Here's how:
json
curl --location 'https://api.vapi.ai/phone-number' \
--header 'Authorization: Bearer your-vapi-private-api-key' \
--header 'Content-Type: application/json' \
--data-raw '{
"provider": "vapi",
"sipUri": "sip:username@sip.vapi.ai",
"assistantId": "your-assistant-id"
}'
According to [Vapi documentation](https://docs.vapi.ai/advanced/sip), you can provide an assistantId to a phone number, and it will use that assistant when receiving inbound calls.
Sources:
- [Vapi SIP Documentation](https://docs.vapi.ai/advanced/sip)
- [Vapi Phone Calling Documentation](https://docs.vapi.ai/phone-calling)Kings_big💫
05/01/2025, 1:37 PMPATCH /phone-number/:id endpoint and setting the assistantId in the request body.