https://retellai.com/?utm_source=discord&utm_medium=seo logo
can i get usage stats out via api or similar
# ❓・ai-evy-support
a
@AI Evy can i get usage stats out via api or similar?
a
Thanks for tagging me @ahutna. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I can see there's a
/get-usage
endpoint mentioned in a Discord discussion [(1) ]() . However, the specific documentation for usage statistics API endpoints isn't available in the sources I have access to. The Get Chat API [(2) ]() does provide some cost information for individual chats through the
chat_cost
object, which includes:
Copy code
javascript
"chat_cost": {
  "product_costs": [
    {
      "product": "elevenlabs_tts",
      "unit_price": 1,
      "cost": 60
    }
  ],
  "combined_cost": 70
}
This gives you cost data per chat session, but for comprehensive usage statistics across your account, you'd need access to the usage API documentation which isn't included in my current sources. I don't have the complete API documentation for usage statistics endpoints. Would you like me to try to provide a general answer based on my knowledge, or would you prefer to check these resources: - [Get Chat]() - Visit [Contact Sales]() - Visit [)
​ To learn more, see the sources I considered: [[1] Usage Empty](https://discord.com/channels/1186424376300679209/1403395780961767650) [[2] Get Chat](https://docs.retellai.com/api-references/get-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
@AI Evy i am looking for total number of mins used for example
a
Thanks for the follow-up, @ahutna. I'll get back to you soon.
### Answer Based on the available sources, you can get usage information through the List Calls API [(1) ]() . The API response includes call duration data that you can use to calculate total minutes used:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponses = await client.call.list() ;
console.log(callResponses) ;
The response includes
duration_ms
for each call , which gives you the duration in milliseconds that you can convert to minutes. The response also includes
total_duration_seconds
in the cost breakdown . For chat sessions, you can use the Get Chat API [(2) ]() which provides similar duration information. However, there isn't a dedicated usage analytics endpoint in the current API documentation that provides aggregated metrics like total minutes across all calls. A Discord discussion mentions that you could write your own usage tracker with the APIs [(3) ]() , suggesting you'd need to aggregate the data from individual call records yourself. For comprehensive organization-level analytics, you might want to visit [Contact Sales]() or check [) for additional resources.
​ To learn more, see the sources I considered: [[1] List Calls](https://docs.retellai.com/api-references/list-calls) [[2] Get Chat](https://docs.retellai.com/api-references/get-chat) [[3] Discord message from @crashbot7480 on 2025-04-21](https://discord.com/channels/1186424376300679209/1186462578310910112/1363975032879185951) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.