https://retellai.com/?utm_source=discord&utm_medium=seo logo
how can i have the perfect tracking of retell in m...
# ❓・ai-evy-support
m
@AI Evy how can i have the perfect tracking of retell in my api, calls, phones and others charges retell does? look like im having a discrepancy on this
a
Thanks for tagging me @MaracujaMan. I'll look through relevant sources and get back to you shortly.
### Answer To track calls and charges accurately in Retell AI, you can use a combination of webhooks and the Get Call API. Here's how: ## 1. Set Up Webhooks for Real-Time Tracking Subscribe to webhook events to receive real-time notifications for every call. Key events include: -
call_started
— Triggered when a call begins [(1) ]() -
call_ended
— Triggered when a call completes, transfers, or errors -
call_analyzed
— Triggered when call analysis is complete (includes full call data) ## 2. Track Cost Per Call Each call object includes a
call_cost
field with detailed billing breakdown: -
product_costs
— Lists each product used (e.g., TTS provider) with individual costs [(2) ]() -
total_duration_seconds
— Total call duration -
total_duration_unit_price
— Price per unit of time -
combined_cost
— Total cost for the call ## 3. Use the Get Call API You can retrieve detailed call data programmatically using the [Get Call API]() , which returns the full call object including cost breakdown. [(3) ]() ## 4. Verify Webhook Delivery To ensure you're not missing any calls: - Webhooks retry up to 3 times if no 2xx response is received within 10 seconds [(1) ]() - Note: Calls that don't connect (
dial_failed
,
dial_no_answer
,
dial_busy
) won't trigger
call_started
but will still trigger
call_ended
and
call_analyzed
## 5. Store Metadata for Reconciliation You can attach custom
metadata
to calls (up to 50kB) to store your internal IDs for easier reconciliation with your billing systems. [(4) ]() If you're still see
ing discrepancies after implementing these tracking methods, I'd recommend checking your webhook logs and comparing against the dashboard's Call History to identify any gaps.
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) [[2] Register Phone Call](https://docs.retellai.com/api-references/register-phone-call) [[3] Consume the analysis data](https://docs.retellai.com/features/post-call-analysis-consumption) [[4] Update Call](https://docs.retellai.com/api-references/update-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Thanks for the follow-up, @MaracujaMan. I'll get back to you soon.
m
@AI Evy Does Retell have an API endpoint for billing/invoices/usage beyond the per-call
call_cost
field? (e.g., a /billing or /usage endpoint that shows monthly totals, phone number rentals, platform fees, etc.)
a
### Answer Based on the available documentation, Retell AI does not currently have a dedicated API endpoint for billing, invoices, or aggregated usage (such as monthly totals, phone number rentals, or platform fees) . [(1) ]() [(2) ]() The Billing tab in the dashboard allows you to: - Review monthly expenses with detailed cost breakdowns by category (Voice Engine, LLM, etc.) [(1) ]() - Download invoices - View current charges and usage details However, this functionality is only available through the dashboard UI, not via API. As noted in a community discussion, the workaround is to retrieve all calls via the API and sum up the
call_cost
fields yourself, though this isn't optimal for high-volume use cases. [(2) ]() If you need programmatic access to billing data beyond per-call costs, this would be a feature request worth raising with the Retell team. Check out these potentially useful sources: - [Billing Overview]() - [Documentation]() - [Hire certified Retell partner]() Would you like me to try to answer generally based on my knowledge, or is there anything else I can help with?
​ To learn more, see the sources I considered: [[1] Billing Overview](https://docs.retellai.com/accounts/billing) [[2] Billing API](https://discord.com/channels/1186424376300679209/1327189995299143732) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.