> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bland.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Test Analytics

> Get basic testing analytics for a pathway over a time window.

### Headers

<ParamField header="authorization" type="string" required>
  Your API key for authentication.
</ParamField>

### Path Parameters

<ParamField path="pathwayId" type="string" required>
  The pathway ID.
</ParamField>

### Query Parameters

<ParamField query="days" type="integer" default="30">
  Number of days to look back. Maximum value is 365.
</ParamField>

### Response

<ResponseField name="total_runs" type="integer">
  Total number of test runs in the time window.
</ResponseField>

<ResponseField name="passed" type="integer">
  Number of test runs that passed.
</ResponseField>

<ResponseField name="failed" type="integer">
  Number of test runs that failed.
</ResponseField>

<ResponseField name="pass_rate" type="number">
  Pass rate as a decimal from 0 to 1.
</ResponseField>

<ResponseField name="avg_score" type="number">
  Average score across all runs, from 0 to 1.
</ResponseField>

<ResponseField name="runs" type="array">
  Individual run summaries for the time window.
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "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"
      }
    ]
  }
  ```
</ResponseExample>

***

Docs for agents: [llms.txt](/llms.txt)
