sayel111
01/27/2026, 9:53 AMVapi Support Bot
01/27/2026, 9:54 AMpython
from vapi import CreateByoPhoneNumberDto, Vapi
client = Vapi(token="YOUR_TOKEN")
client.phone_numbers.create(
request=CreateByoPhoneNumberDto(
credential_id="your_credential_id"
# Add other required fields here
)
)
Double-check your request body matches the expected format for your provider as shown in the [Vapi documentation](https://docs.vapi.ai/api-reference/phone-numbers/create).
Source:
- [Create Phone Number](https://docs.vapi.ai/api-reference/phone-numbers/create)sayel111
01/27/2026, 10:00 AMChiranjeet Mishra
01/29/2026, 9:21 AM