Vapi Phone Number Provisioning via API Failing
# support
m
Hi, I've been attempting to provision phone numbers with Vapi as the provider via the API. I noticed that the operation shows as successful in the API response, but the number is not created (shows as 'Untitled Phone Number' in the dashboard list). https://cdn.discordapp.com/attachments/1451344831354765406/1451344832441225316/Screenshot_2025-12-18_at_2.43.46_PM.png?ex=6945d5b4&is=69448434&hm=8f776658b447a176382788dc648a036d6b08e2cf3e3bc87abc91e407be1cbe8d&
The dropdown for technical details doesn't drop down so unfortunately this is all I have
v
To ensure your phone number is created with a proper name, try including the "name" field in your API request payload. Hereโ€™s an example using cURL:
Copy code
bash
curl -X POST https://api.vapi.ai/phone-number \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "provider": "vapi-phone-number",
    "credentialId": "<your_credential_id>",
    "name": "My Test Number"
  }'
Make sure to replace
<token>
and
<your_credential_id>
with your actual values. This should help avoid the "Untitled Phone Number" issue in the dashboard. For more details, see the [API reference](https://docs.vapi.ai/api-reference/phone-numbers/create?explorer=true). Source: - [API Reference: Create Phone Number](https://docs.vapi.ai/api-reference/phone-numbers/create?explorer=true)
v
Message marked as helpful by @mellowmango! ๐ŸŽ‰
m
Two things: 1) is 'vapi' the provider name (as shown in the docs) or 'vapi-phone-number', 2) what is the credential if not the bearer & api in the authorization bearer, it seems to me that the credential field would be for non-vapi providers
The API request sample above does not work. [ { "id": "real-value", "orgId": "real-value", "createdAt": "2025-12-18T22:54:39.775Z", "updatedAt": "2025-12-18T22:54:39.775Z", "name": "tech-repair-hub", "provider": "vapi", "status": "active" } ] this is the api response that I get when I use 'vapi' as the provider name and remove the credential field while adding the name. I still get the error message in the dashboard.
v
Message marked as helpful by @mellowmango! ๐ŸŽ‰