How to import ma phone number for Vonage thru API
# support
v
How do I import a phone number from Vonage thru the API? Currently the POST API for adding phone number say that you have to add a credential ID and that this is coming from /keys page but there is no such thing on the keys page of the UI. For vonage it requires a API Key and Secret. Thanks
v
To import a Vonage phone number via the Vapi API, first create a credential (with your Vonage API Key and Secret) using the
/credential
endpoint to get a
credentialId
. Then, use this
credentialId
in your POST request to
/phone-number
like so:
Copy code
json
POST https://api.vapi.ai/phone-number
Headers: {
  "Authorization": "Bearer YOUR_API_KEY",
  "Content-Type": "application/json"
}
Body: {
  "provider": "Vonage",
  "number": "YOUR_PHONE_NUMBER",
  "credentialId": "YOUR_CREDENTIAL_ID"
}
Note: The exact JSON structure for Vonage credentials is not detailed in the available documentation. Sources: - [Vapi API Reference: Create Phone Number](https://docs.vapi.ai/api-reference/phone-numbers/create) - [Vapi Discord Reference](https://discord.com/channels/1211482211119796234/1341469652366266408)
v
Message marked as helpful by @VahidKowsari! 🎉
v
Where is the documentation for the credential endpoint?
@Vapi Support Bot Where is the documentation for the credential endpoint?
v
There is currently no dedicated documentation page for the
/credential
endpoint in the Vapi API documentation. Users are advised to refer to the general API documentation or contact Vapi support for more details. This is a known limitation, as confirmed in the available information. For general API guidance, you can visit: [Vapi API Docs](https://docs.vapi.ai/workflows). Sources: - [Vapi Discord Reference](https://discord.com/channels/1211482211119796234/1317475563220504596) - [Vapi Docs: Workflows](https://docs.vapi.ai/workflows)
v
@Shubham Bajaj would you know details for the credential endpoint?
k
Create a Vonage credential in the Vapi dashboard with your API key and secret, get the credential ID, then use it in the POST request to add the phone number.
a
Hey, Could you please schedule a brief call at your convenience so we can discuss this matter in detail? Kindly use the following link to book a suitable time: .
v
Ok thanks got it working @Shubham Bajaj
a
hi anyone here
I am getting followig error on vapi when I add vonage credentials
I actually needs credential id to create numbert through vonage but when i place api key and secete I got following error https://cdn.discordapp.com/attachments/1372290902147465367/1372892602256330832/image.png?ex=68286d5f&is=68271bdf&hm=73b0d8c5cedbfa8a4dd3d74fa6088974889c6f7e451b36b3ecda0142d7ceb6d1&
a
Please clear your browser cache and refresh the page. Let us know if you still have issues adding your Vonage credentials so we can report it back to the team
s
@Vapi Support Bot where i can find my credential id im trying to add vonage phone number via api
a
You can find your credential ID in your Vonage account dashboard by following these steps: 1. Log in to your Vonage account. 2. Once logged in, look for the menu on the left side of the screen. 3. Click on the "API" section in the menu. 4. In the API section, you will see your credential ID listed under the "Credentials" or "API Keys" area. If you need further assistance, let me know.