Skip to main content
POST
/
v2
/
experiments
/
{experiment_id}
/
runs
/
annotate
Annotate a batch of experiment runs
curl --request POST \
  --url https://api.arize.com/v2/experiments/{experiment_id}/runs/annotate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "annotations": [
    {
      "record_id": "run_abc",
      "values": [
        {
          "name": "quality",
          "label": "good"
        }
      ]
    }
  ]
}
'
{
  "status": 400,
  "title": "Invalid request parameters",
  "detail": "The 'name' field is required and must be a non-empty string.",
  "instance": "/resource",
  "type": "https://arize.com/docs/ax/rest-reference/errors#invalid-request"
}

Authorizations

Authorization
string
header
required

Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format

Path Parameters

experiment_id
string
required

The unique experiment identifier (base64) A universally unique identifier (base64-encoded opaque string).

Example:

"RW50aXR5OjEyMzQ1"

Body

application/json

Body containing experiment run annotation batch

Batch annotation request for experiment runs.

annotations
object[]
required

Batch of experiment run annotations to write. Up to 1000 runs per request.

Required array length: 1 - 1000 elements

Response

Annotations written successfully. The annotations have been accepted and will be written. Visibility in read queries may lag by a short interval.