Create a new annotation queue.
Payload Requirements
annotation_config_id is required, and all configs must belong to the specified space.id, created_at, updated_at.assignment_method is not provided, it defaults to "all".annotator_emails are provided, all emails must resolve to existing users with access to the space.Valid example
{
"name": "Quality Review Queue",
"space_id": "spc_xyz789",
"annotation_config_ids": ["ac_abc123"],
"assignment_method": "all"
}
Valid example with records
{
"name": "Quality Review Queue",
"space_id": "spc_xyz789",
"annotation_config_ids": ["ac_abc123"],
"annotator_emails": ["reviewer@example.com"],
"records": [
{"record_type": "span", "project_id": "prj_abc", "start_time": "2024-01-15T00:00:00Z", "end_time": "2024-01-16T00:00:00Z", "span_ids": ["span_001"]},
{"record_type": "example", "dataset_id": "ds_xyz", "example_ids": ["ex_001", "ex_002"]}
]
}
Invalid example (missing required annotation_config_ids)
{
"name": "My Queue",
"space_id": "spc_xyz789"
}
Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format
Body containing annotation queue creation parameters
The name of the annotation queue. Must be unique within the space for active queues.
255"Quality Review Queue"
The space ID that the annotation queue belongs to
"spc_xyz789"
IDs of annotation configs to associate with this queue. All configs must belong to the same space.
1["ac_abc123", "ac_def456"]Email addresses of annotators to assign to the queue. Emails are resolved to user IDs server-side.
1[
"annotator1@example.com",
"annotator2@example.com"
]Instructions for annotators working on this queue
5000"Review each response for accuracy and helpfulness"
How records are assigned to annotators. Defaults to "all".
all: Every annotator is assigned to every record.random: Each record is randomly assigned to one annotator.all, random Records to add to the annotation queue on creation. At most 2 record sources (projects or datasets) may be provided in a single create request. Additional records from other sources can be added after creation.
2Returns the created annotation queue
The unique identifier for the annotation queue
"aq_abc123"
The name of the annotation queue
"Quality Review Queue"
The space id the annotation queue belongs to
"spc_xyz789"
The timestamp for when the annotation queue was created
"2024-01-15T10:30:00Z"
The timestamp for when the annotation queue was last updated
"2024-01-20T14:45:00Z"
The instructions for the annotation queue
"Review each response for accuracy and helpfulness"
The annotation configs associated with this queue
[
{
"id": "ac_001",
"name": "accuracy",
"type": "continuous",
"space_id": "spc_xyz789",
"minimum_score": 0,
"maximum_score": 10,
"optimization_direction": "maximize",
"created_at": "2024-01-10T08:00:00Z"
},
{
"id": "ac_002",
"name": "sentiment",
"type": "categorical",
"space_id": "spc_xyz789",
"values": [
{ "label": "positive", "score": 1 },
{ "label": "neutral", "score": 0 },
{ "label": "negative", "score": -1 }
],
"optimization_direction": "maximize",
"created_at": "2024-01-10T08:00:00Z"
}
]