Launch Week 02 wrapped — explore all five launches

List Data

GEThttps://api.confident-ai.com/v2/metrics-data

Lists the metric results in your Confident AI project one page at a time. Only results recorded against single-turn test cases are listed; multi-turn results are read through the test run they belong to.

GET/v2/metrics-data
curl -X GET "https://api.confident-ai.com/v2/metrics-data" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "success": true,
  "data": {
    "metricsData": [
      {
        "id": "<METRIC-DATA-ID>",
        "name": "Answer Relevancy",
        "score": 0.95,
        "reason": "The answer directly states the capital of France.",
        "success": true,
        "threshold": 0.5,
        "strictMode": false,
        "skipped": false,
        "flaky": false,
        "evaluationModel": "gpt-4o",
        "evaluationCost": 0.0004,
        "error": null,
        "errorType": "AI_CONNECTION_ERROR",
        "createdAt": "2025-01-15T10:30:06.000Z",
        "evaluatedAt": "2025-01-15T10:30:09.000Z",
        "multiTurn": false
      }
    ],
    "totalMetricsData": 120,
    "page": 1,
    "pageSize": 25
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Query parameters

  • pageintegerdefault: 1

    The page of metric data to return. Defaults to 1.

  • pageSizeintegerdefault: 25

    The number of results per page, at most 100. Defaults to 25.

  • startstring

    Returns only results recorded at or after this ISO 8601 datetime.

  • endstring

    Returns only results recorded before this ISO 8601 datetime.

Response

List Data succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    One page of metric results, with the total across all pages.

    Show 4 propertiesHide 4 properties
    • metricsDatalist of objects

      The metric results for the current page. Only single-turn results are listed.

      Show 16 propertiesHide 16 properties
      • idstring

        The unique identifier of the metric data entry.

      • namestring

        The name of the metric.

      • scorenumber | null

        The final metric score, or null when the metric errored or was skipped.

      • reasonstring | null

        The reason for the metric score, generated by the evaluation model at evaluation time.

      • successboolean | null

        Whether the metric score is above the threshold, or null while the evaluation is still running.

      • thresholdnumber | null

        The threshold for the metric, which determines if the metric is passing or failing.

      • strictModeboolean

        Whether the metric was run in strict mode, which outputs a binary score of 0 or 1.

      • skippedboolean

        Whether the metric evaluation was skipped.

      • flakyboolean

        Whether the metric's verdict was non-deterministic across runs.

      • evaluationModelstring | null

        The evaluation model used to run the evaluation.

      • evaluationCostnumber | null

        The cost of running the evaluation in USD.

      • errorstring | null

        The error message if the evaluation failed.

      • errorTypeenum | null

        Why an evaluation errored: the AI connection or a transformer failed, the evaluation model failed, the test case lacked the parameters the metric needs, or an internal error occurred.

        Show 5 enum valuesHide 5 enum values
        • AI_CONNECTION_ERROR
        • TRANSFORMER_ERROR
        • EVALUATION_MODEL_ERROR
        • INVALID_TEST_CASE_PARAMETERS
        • INTERNAL_ERROR
      • createdAtstring

        The time the metric data was created.

      • evaluatedAtstring | null

        The time the metric was evaluated, or null while it is still running.

      • multiTurnboolean

        Whether this metric was evaluated on a multi-turn conversation.

    • totalMetricsDatainteger

      The total number of single-turn results matching the query across all pages.

    • pageinteger

      The page this response covers.

    • pageSizeinteger

      The number of results per page.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI