Ravi Asthana
04/04/2025, 12:21 PMconversationId
from the above json. I want vapi to also send over the price
as well whenever vonage shares this detail. As this whole process of setting the webhooks is automated by vapi, i want a way to also get price
details from vapi when I fetch call details or via server events triggered.Vapi Support Bot
04/04/2025, 12:22 PMprice
field in Vapi, either through call details or server events. While I couldn't find specific information about whether Vapi currently includes the Vonage price
field in its responses, I can share what I know about Vapi's handling of call details and potential approaches.
## What Vapi Server Events Are
Vapi server events allow your application to receive data and communicate with Vapi during conversations. According to the [Vapi documentation](https://docs.vapi.ai/server-url/events), these events are sent to a Server URL as POST requests and include various types:
- Status Updates
- Transcript Updates
- Function Calls
- Assistant Requests
- End of Call Report
- Hang Notifications
The server events follow this structure:
json
{
"message": {
"type": "function-call",
"call": { Call Object },
...other message properties
}
}
## Accessing Call Cost Information
Vapi does provide some cost information that you might find useful:
1. **Call Cost Information**: According to the [Vapi changelog](https://docs.vapi.ai/changelog/2024/10/9), you can use call.costs[type=vapi].subType
to determine if a VAPI cost is normal
or an overage
.
2. **Dashboard Cost Breakdown**: You can view a breakdown of your cost per call in your dashboard at [dashboard.vapi.ai/calls](https://dashboard.vapi.ai/calls), which includes STT, LLM, TTS, Vapi platform fee, and Transport (telephony costs).
3. **API Endpoints**: Vapi provides several API endpoints related to calls, including "GET List Calls" and "GET Get Call" which might contain cost information.
4. **Analytics API**: The Vapi analytics API can be used to retrieve usage data, including cost information.
## Potential Approaches
Since you're specifically looking for the Vonage price
field, here are some approaches you might consider:Vapi Support Bot
04/04/2025, 12:22 PM/api-reference/calls/get
) to see if it includes the price information you need.
3. **Contact Vapi Support**: For specific features like including the Vonage price
field in responses, reaching out to Vapi support at support@vapi.ai might be the most direct approach. They could either confirm if this is already possible or consider it as a feature request.
Would you like me to provide more details on any of these approaches or help with anything else?
Sources:
- [Vapi Server Events](https://docs.vapi.ai/server-url/events)
- [Vapi Changelog](https://docs.vapi.ai/changelog/2024/10/9)
- [Estimating Costs](https://docs.vapi.ai/billing/estimating-costs)
- [API Reference](https://docs.vapi.ai/api-reference/)Vapi Support Bot
04/04/2025, 12:23 PMprice
field in Vapi responses.
They'll be able to confirm whether this is currently possible and, if not, consider it as a feature request. The team will reach out to you directly with more information.
In the meantime, you might want to check the "End of Call Report" server event as it provides the most comprehensive call summary data, though I can't confirm if it includes the Vonage price field specifically.
Thanks for your patience! Is there anything else you'd like to know while we wait for the support team's response?Kyle
04/06/2025, 11:51 AMKyle
04/06/2025, 11:56 AM