Create annotation queue records
Add new records from spans, traces, or 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 project record source:
- span records: all
span_idsmust be non-empty strings. - trace records: all
trace_idsmust be non-empty strings.
- span records: all
- At most 500 records total may be added in one request
Valid example (span record)
{
"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="]
}
]
}
Valid example (trace record)
{
"record_sources": [
{
"record_type": "TRACE",
"project_id": "TW9kZWw6MTIzOmFCY0Q=",
"start_time": "2026-01-15T00:00:00Z",
"end_time": "2026-01-16T00:00:00Z",
"trace_ids": ["8fe3373f-0da4-4a8e-b57f-5c8878cfb747"]
}
]
}
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="]
}
]
}
Response codes
201 Created: at least one new record was added to the queue.200 OK: the request was valid but all record sources were already present in the queue — no new records were inserted. Therecord_sourcesarray in the response body will be empty.
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. The total number of records resolved from all sources must not exceed 500.
1 - 2 elements- Option 1
- Option 2
- Option 3
Response
Returns the created annotation queue records
The created annotation queue records