ahutna
10/17/2025, 12:29 PMAI Evy
10/17/2025, 12:29 PMAI Evy
10/17/2025, 12:29 PM/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:
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 [)AI Evy
10/17/2025, 12:29 PMAI Evy
10/17/2025, 12:29 PMahutna
10/17/2025, 12:31 PMAI Evy
10/17/2025, 12:31 PMAI Evy
10/17/2025, 12:31 PMjavascript
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.AI Evy
10/17/2025, 12:31 PMAI Evy
10/17/2025, 12:31 PM