Create annotation queue records
Add new records from either spans (a project) or from dataset examples to an existing annotation queue.
Payload Requirements
- At least one record source is required.
- At most 2 record sources are allowed per request
- For span record source:
start_timemust be beforeend_time, and the range must not exceed 7 days. - For dataset record source: all
example_idsmust be non-empty strings. - For spans record source: all
span_idsmust be non-empty strings. - At most 500 records total may be added in one request
Valid example
{
"record_sources": [
{
"record_type": "span",
"project_id": "TW9kZWw6MTIzOmFCY0Q=",
"start_time": "2026-01-15T00:00:00Z",
"end_time": "2026-01-16T00:00:00Z",
"span_ids": ["U3BhbjoxOmFCY0Q="]
}
]
}
Invalid example (span record with start_time after end_time)
{
"record_sources": [
{
"record_type": "span",
"project_id": "TW9kZWw6MTIzOmFCY0Q=",
"start_time": "2026-01-20T00:00:00Z",
"end_time": "2026-01-15T00:00:00Z",
"span_ids": ["U3BhbjoxOmFCY0Q="]
}
]
}
Authorizations
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
The unique annotation queue identifier (base64) A universally unique identifier (base64-encoded opaque string).
"RW50aXR5OjEyMzQ1"
Body
Body containing records to add to an annotation queue
Record sources to add to the annotation queue. At most 2 record sources (projects or datasets) may be provided in a single request.
1 - 2 elements- Option 1
- Option 2
Response
Returns the created annotation queue records
The created annotation queue records