Skip to main content
GET
/
v1
/
scores
/
aggregations
Get Score Aggregations
curl --request GET \
  --url https://api.agentmark.co/v1/scores/aggregations \
  --header 'Authorization: <api-key>' \
  --header 'X-Agentmark-App-Id: <x-agentmark-app-id>'
{
  "data": [
    {
      "name": "quality",
      "avg_score": 0.87,
      "count": 150,
      "min_score": 0.12,
      "max_score": 1
    },
    {
      "name": "relevance",
      "avg_score": 0.92,
      "count": 120,
      "min_score": 0.45,
      "max_score": 1
    }
  ]
}

Authorizations

Authorization
string
header
required

Your AgentMark API key. Create one in the dashboard under Settings > API Keys.

Example: Authorization: Bearer am_live_abc123

Headers

X-Agentmark-App-Id
string
required

Your application ID. Found in the dashboard under Settings > General.

Example:

"app_abc123"

Query Parameters

start_date
string<date>

Start date for aggregation window (YYYY-MM-DD). Defaults to 7 days ago.

end_date
string<date>

End date for aggregation window (YYYY-MM-DD). Defaults to today.

Response

Score aggregations grouped by name.

data
object[]