Skip to main content
GET
/
v1
/
metrics
Get all metrics
curl --request GET \
  --url https://api.dp1.us.honeyhive.ai/v1/metrics \
  --header 'Authorization: Bearer <token>'
{
  "metrics": [
    {
      "name": "<string>",
      "type": "PYTHON",
      "criteria": "<string>",
      "description": "<string>",
      "return_type": "float",
      "enabled_in_prod": true,
      "needs_ground_truth": true,
      "sampling_percentage": 50,
      "filters": {
        "filterArray": [
          {
            "field": "<string>",
            "operator": "exists",
            "value": "<string>",
            "type": "string"
          }
        ]
      },
      "id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "model_provider": "<string>",
      "model_name": "<string>",
      "scale": 123,
      "threshold": {
        "min": 123,
        "max": 123,
        "pass_when": true,
        "passing_categories": [
          "<string>"
        ]
      },
      "categories": [
        {
          "category": "<string>",
          "score": 123
        }
      ],
      "child_metrics": [
        {
          "name": "<string>",
          "weight": 123,
          "id": "<string>",
          "scale": 123
        }
      ]
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.honeyhive.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

type
string

Filter by metric type

id
string

Filter by specific metric ID

Response

200 - application/json

Metrics retrieved successfully

Response for GET /metrics

metrics
object[]
required