curl --request GET \
--url https://api.bland.ai/v1/agent-testing/analytics/{pathwayId} \
--header 'authorization: <authorization>'{
"total_runs": 48,
"passed": 39,
"failed": 9,
"pass_rate": 0.8125,
"avg_score": 0.84,
"runs": [
{
"id": "run_a1b2c3d4-5678-9abc-def0-1234567890ab",
"scenario_id": "scn_f0e1d2c3-b4a5-9687-7856-342109876543",
"scenario_name": "Happy Path - Appointment Booking",
"status": "passed",
"score": 0.95,
"created_at": "2026-04-13T14:22:00.000Z"
},
{
"id": "run_b2c3d4e5-6789-abcd-ef01-234567890abc",
"scenario_id": "scn_e1d2c3b4-a596-8778-5634-210987654321",
"scenario_name": "Angry Caller De-escalation",
"status": "failed",
"score": 0.42,
"created_at": "2026-04-13T14:18:00.000Z"
},
{
"id": "run_c3d4e5f6-789a-bcde-f012-34567890abcd",
"scenario_id": "scn_d2c3b4a5-9687-7856-3421-098765432109",
"scenario_name": "Voicemail Detection",
"status": "passed",
"score": 1.0,
"created_at": "2026-04-12T09:45:00.000Z"
}
]
}
Get basic testing analytics for a pathway over a time window.
curl --request GET \
--url https://api.bland.ai/v1/agent-testing/analytics/{pathwayId} \
--header 'authorization: <authorization>'{
"total_runs": 48,
"passed": 39,
"failed": 9,
"pass_rate": 0.8125,
"avg_score": 0.84,
"runs": [
{
"id": "run_a1b2c3d4-5678-9abc-def0-1234567890ab",
"scenario_id": "scn_f0e1d2c3-b4a5-9687-7856-342109876543",
"scenario_name": "Happy Path - Appointment Booking",
"status": "passed",
"score": 0.95,
"created_at": "2026-04-13T14:22:00.000Z"
},
{
"id": "run_b2c3d4e5-6789-abcd-ef01-234567890abc",
"scenario_id": "scn_e1d2c3b4-a596-8778-5634-210987654321",
"scenario_name": "Angry Caller De-escalation",
"status": "failed",
"score": 0.42,
"created_at": "2026-04-13T14:18:00.000Z"
},
{
"id": "run_c3d4e5f6-789a-bcde-f012-34567890abcd",
"scenario_id": "scn_d2c3b4a5-9687-7856-3421-098765432109",
"scenario_name": "Voicemail Detection",
"status": "passed",
"score": 1.0,
"created_at": "2026-04-12T09:45:00.000Z"
}
]
}
{
"total_runs": 48,
"passed": 39,
"failed": 9,
"pass_rate": 0.8125,
"avg_score": 0.84,
"runs": [
{
"id": "run_a1b2c3d4-5678-9abc-def0-1234567890ab",
"scenario_id": "scn_f0e1d2c3-b4a5-9687-7856-342109876543",
"scenario_name": "Happy Path - Appointment Booking",
"status": "passed",
"score": 0.95,
"created_at": "2026-04-13T14:22:00.000Z"
},
{
"id": "run_b2c3d4e5-6789-abcd-ef01-234567890abc",
"scenario_id": "scn_e1d2c3b4-a596-8778-5634-210987654321",
"scenario_name": "Angry Caller De-escalation",
"status": "failed",
"score": 0.42,
"created_at": "2026-04-13T14:18:00.000Z"
},
{
"id": "run_c3d4e5f6-789a-bcde-f012-34567890abcd",
"scenario_id": "scn_d2c3b4a5-9687-7856-3421-098765432109",
"scenario_name": "Voicemail Detection",
"status": "passed",
"score": 1.0,
"created_at": "2026-04-12T09:45:00.000Z"
}
]
}
Was this page helpful?