Skip to main content
POST
/
v1
/
scores
/
batch
Create Scores (Batch)
curl --request POST \
  --url https://api.agentmark.co/v1/scores/batch \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'X-Agentmark-App-Id: <x-agentmark-app-id>' \
  --data '
{
  "scores": [
    {
      "resource_id": "span_abc123",
      "name": "quality",
      "score": 0.95,
      "label": "high_quality",
      "source": "eval",
      "client_id": "row-1"
    },
    {
      "resource_id": "span_def456",
      "name": "relevance",
      "score": 0.82,
      "client_id": "row-2"
    }
  ]
}
'
{
  "data": {
    "results": [
      {
        "status": "success",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "client_id": "<string>"
      }
    ],
    "summary": {
      "total": 1,
      "succeeded": 1,
      "failed": 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"

Body

application/json
scores
object[]
required
Required array length: 1 - 1000 elements

Response

All scores created successfully.

data
object
required