Skip to main content
GET
/
v1
/
voiceai
/
analytics
/
criteria
Get Success Rate Analytics
curl --request GET \
  --url https://api.example.com/v1/voiceai/analytics/criteria \
  --header 'x-api-key: <api-key>'
{
  "metrics": [
    {
      "dt": 123,
      "success": 0,
      "failure": 0,
      "unknown": 0
    }
  ],
  "success": 0,
  "failure": 0,
  "unknown": 0
}

Authorizations

x-api-key
string
header
required

API key for programmatic access

Query Parameters

date_range
enum<string> | null
default:month

Time range preset: hour, 6hours, 12hours, day, 3days, week, 14days, month Date range options for analytics queries. Matches ElevenLabs API.

Available options:
hour,
6hours,
12hours,
day,
3days,
week,
14days,
month
time_zone
string
default:UTC

IANA timezone (e.g., 'Asia/Kolkata', 'UTC')

agent_id
string | null

Filter by specific agent ID

start_unix
integer | null

Custom start timestamp (overrides date_range)

end_unix
integer | null

Custom end timestamp (overrides date_range)

Response

Successful Response

Response model for /analytics/criteria endpoint.

metrics
CriteriaMetricItem · object[]

Time-series success/failure counts

success
integer
default:0

Total successful calls

failure
integer
default:0

Total failed calls

unknown
integer
default:0

Total unknown result calls