Philipp
06/19/2024, 5:22 PMVapi
06/19/2024, 5:24 PMVapi
06/19/2024, 5:24 PMhttps://api.vapi.ai/phone-number/import/vonage
Here's an example of how you can do this using cURL:
bash
curl --request POST \
--url https://api.vapi.ai/phone-number/import/vonage \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"vonagePhoneNumber": "YOUR_VONAGE_PHONE_NUMBER",
"credentialId": "YOUR_VONAGE_CREDENTIAL_ID",
"name": "A_NAME_FOR_YOUR_NUMBER"
}'
Make sure to replace YOUR_ACCESS_TOKEN
with your actual VAPI access token, YOUR_VONAGE_PHONE_NUMBER
with the phone number you're importing, YOUR_VONAGE_CREDENTIAL_ID
with your Vonage credential ID, and A_NAME_FOR_YOUR_NUMBER
with a friendly name for your number.
If you need the code in a different programming language, please let me know and I can provide that as well. If you have any further questions or need assistance with the API, feel free to ask!Vapi
06/19/2024, 5:24 PMPhilipp
06/19/2024, 5:28 PMVapi
06/19/2024, 5:29 PMbash
curl --request POST \
--url https://api.vapi.ai/calls \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"to": "NUMBER_YOU_WANT_TO_CALL",
"from": "YOUR_VONAGE_NUMBER",
"answer_url": "URL_TO_YOUR_ANSWER_WEBHOOK"
}'
In this example:
- Replace YOUR_ACCESS_TOKEN
with your VAPI access token.
- Replace NUMBER_YOU_WANT_TO_CALL
with the phone number you want to call.
- Replace YOUR_VONAGE_NUMBER
with your Vonage phone number that you've imported to VAPI.
- Replace URL_TO_YOUR_ANSWER_WEBHOOK
with the URL to the webhook that provides the call flow or Nexmo Call Control Objects (NCCO).
Please note that this is a hypothetical example, and the actual API call might have different parameters or require additional information. Since the documentation is not available, I would recommend reaching out to VAPI support for the exact details on making a call via Vonage using their API.
If you need further assistance or have more questions, feel free to ask!Sahil
06/19/2024, 6:27 PMPhilipp
06/25/2024, 1:15 PM