Skip to main content
GET
/
api
/
analytics
/
providers
Get Provider Breakdown
curl --request GET \
  --url https://api.example.com/api/analytics/providers
{
  "success": true,
  "data": {
    "period": {},
    "providers": {
      "provider": "<string>",
      "call_count": 123,
      "total_cost_credits": 123,
      "avg_duration_seconds": 123
    }
  }
}
Fetches a breakdown of the models and services used by your voice agents. The response separates your metrics into groups like llm, tts, and stt, helping you identify which specific providers (e.g., OpenAI, Anthropic, ElevenLabs) are driving your costs.

Query Parameters

start_date
string
Start date in YYYY-MM-DD format. Defaults to 30 days ago.
end_date
string
End date in YYYY-MM-DD format. Defaults to today.
start_datetime
string
Start exact time in ISO 8601 format (e.g. 2024-03-01T14:30:00Z). Overrides start_date.
end_datetime
string
End exact time in ISO 8601 format. Overrides end_date.

Response

success
boolean
Indicates whether the request was successful.
data
object