cURL
curl --request GET \ --url https://api.trillet.ai/v2/api/call-history/metrics \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>'
{ "totalCalls": 150, "completedCalls": 120, "failedCalls": 10, "averageDuration": 180, "totalCost": 45.50 }
Retrieve aggregated metrics and analytics for call history records in your workspace.
{"startDate":"2024-01-01","endDate":"2024-01-31"}