Create Queue Ingestion Task
POSThttps://api.confident-ai.com/v1/annotation-queues/{queueId}/queue-ingestion-tasks
Creates a standing rule that routes matching production traces, spans, or threads into the annotation queue for human review, starting immediately unless enabled is false.
Task names are unique within a queue, and only TRACE, SPAN, and THREAD are supported — GOLDEN queues are filled from a dataset instead. Requires the Starter plan or above.
curl -X POST "https://api.confident-ai.com/v1/annotation-queues/{queueId}/queue-ingestion-tasks" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"name": "Review failed traces",
"dataModel": "TRACE",
"sampleRate": 0.05,
"assignmentStrategy": "SINGLE_USER",
"reviewerEmails": [
"reviewer@example.com"
]
}'{
"success": true,
"data": {
"id": "QUEUE-INGESTION-TASK-ID"
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/annotation-queues/<QUEUE-ID>"
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
queueIdstringRequiredThe unique identifier of the annotation queue to route items into.
Request body
descriptionstringA note about what the task routes.
enabledbooleanWhether the task runs. Disabling it unschedules the job; items already queued are kept.
sampleRatenumberThe fraction of matching items to queue. Defaults to 1 (all of them).
filtersobjectA set of filter groups combined by a top-level operator.
Show 2 propertiesHide 2 properties
operatorenumRequiredHow filters or groups are combined.
Show 2 enum valuesHide 2 enum values
ANDOR
groupslist of objectsRequiredThe filter groups.
Show 2 propertiesHide 2 properties
operatorenumRequiredHow filters or groups are combined.
Show 2 enum valuesHide 2 enum values
ANDOR
filterslist of objectsRequiredThe filter rows in this group.
Show 4 propertiesHide 4 properties
categorystringRequiredThe property a filter row matches on (e.g. "Name", "User Id", "Model", "Metadata"). The set of valid values depends on the line's dataModel.
conditionenumRequiredThe comparison a filter row applies. Valid conditions depend on the category.
Show 18 enum valuesHide 18 enum values
IsIs notIs equal toDoes not equalIs less thanIs equal or less thanIs greater thanIs equal or greater thanHasHas notContainsContains onlyDoes not containHas increased by more thanHas increased by less thanHas decreased by more thanHas decreased by less thanHas changed from
valuestring | number | list of stringsRequiredThe value to match against.
Show 3 variantsHide 3 variants
string
- OR
number
- OR
list of strings
keystringThe property key. Auto-populated from category when omitted; required for Metadata, Metric, and Classifier filters.
maxItemsintegerThe maximum number of items this task will ever queue. Send
nullto remove the cap.assignmentStrategyenumHow queued items are assigned.
SINGLE_USERsends everything to one reviewer;ROUND_ROBINandRANDOMspread them across a pool. Defaults toSINGLE_USER.Show 3 enum valuesHide 3 enum values
SINGLE_USERROUND_ROBINRANDOM
reviewerEmailslist of stringsThe reviewers, by email. They must already be members of the project.
SINGLE_USERaccepts at most one;ROUND_ROBINandRANDOMrequire at least one. Re-sending the same reviewers preserves their existing assignment counts, so load balancing carries over an edit.namestringRequiredA name for the task, unique within the queue.
dataModelenumRequiredWhat kind of item to route into the queue.
Show 3 enum valuesHide 3 enum values
TRACESPANTHREAD
Response
successbooleanIndicates if the ingestion task was successfully created.
dataobjectShow 1 propertyHide 1 property
idstringThe unique identifier of the created ingestion task.
linkstringA link to the annotation queue.