manohar
01/13/2025, 6:24 AMVapi
01/13/2025, 6:26 AMVapi
01/13/2025, 6:26 AMmanohar
01/13/2025, 6:30 AMmanohar
01/13/2025, 6:30 AMmanohar
01/13/2025, 6:30 AMmanohar
01/13/2025, 12:03 PMVapi
01/13/2025, 12:03 PMmanohar
01/13/2025, 12:04 PMVapi
01/13/2025, 12:04 PMmanohar
01/13/2025, 12:05 PMVapi
01/13/2025, 12:05 PMhttp
POST /api/v1/calls
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"to": "+1234567890",
"from": "+0987654321",
"answer_url": "https://yourserver.com/answer"
}
In this example:
- Replace YOUR_API_KEY
with your actual API key.
- The to
field is the number you want to call.
- The from
field is your VAPI number (or a number you have permission to use).
- The answer_url
is where VAPI will send a webhook to get instructions on how to handle the call.
### Tool Functionality API Call
For tool functionality, such as transcribing speech or sending SMS, you would use another endpoint. Here's an example of how you might send an SMS:
http
POST /api/v1/messages
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"to": "+1234567890",
"from": "+0987654321",
"text": "Hello, this is a message sent via VAPI."
}
In this example:
- Replace YOUR_API_KEY
with your actual API key.
- The to
field is the recipient's number.
- The from
field is your VAPI number (or a number you have permission to use).
- The text
field is the message content.
Please note that the actual endpoints, HTTP methods, and request body structure may vary depending on VAPI's specific API implementation. You should consult the official VAPI API documentation for the exact details.
If you need more detailed information or have any other questions, please let me know!manohar
01/13/2025, 12:07 PMmanohar
01/13/2025, 12:08 PMmanohar
01/13/2025, 12:09 PMmanohar
01/13/2025, 12:09 PMmanohar
01/13/2025, 12:09 PMmanohar
01/13/2025, 12:09 PMmanohar
01/13/2025, 12:11 PMShubham Bajaj
01/13/2025, 12:23 PMmanohar
01/13/2025, 12:43 PMmanohar
01/13/2025, 4:46 PMShubham Bajaj
01/13/2025, 5:53 PMmanohar
01/13/2025, 7:17 PMShubham Bajaj
01/16/2025, 12:11 PM