Skip to main content
The ax annotation-queues commands are currently in ALPHA. The API may change without notice. A one-time warning is emitted on first use.
The ax annotation-queues commands let you create, retrieve, and manage annotation queues on the Arize platform. Annotation queues collect spans for human review and labeling.

ax annotation-queues list

List annotation queues in a space.
ax annotation-queues list [--space <id>] [--name <filter>] [--limit <n>] [--cursor <cursor>]
OptionDescription
--spaceSpace name or ID
--nameFilter by queue name (substring match)
--limitMaximum number of results to return (default: 15)
--cursorPagination cursor for the next page
Examples:
ax annotation-queues list --space sp_abc123
ax annotation-queues list --space sp_abc123 --name "review"

ax annotation-queues create

Create a new annotation queue. At least one --annotation-config-id is required.
ax annotation-queues create --name <name> --space <id> --annotation-config-id <id> [options]
OptionDescription
--nameAnnotation queue name
--spaceSpace name or ID
--annotation-config-idAnnotation config ID to associate (repeat for multiple)
--annotator-emailAnnotator email to assign (repeat for multiple)
--instructionsInstructions for annotators (max 5000 characters)
--assignment-methodHow records are assigned to annotators: all or random
Example:
ax annotation-queues create \
  --name "accuracy-review" \
  --space sp_abc123 \
  --annotation-config-id ac_xyz789 \
  --annotator-email reviewer@example.com \
  --instructions "Review each response for accuracy on a scale of 1-5"

ax annotation-queues get

Get an annotation queue by name or ID.
ax annotation-queues get <name-or-id> [--space <id>]
OptionDescription
--spaceSpace name or ID (required when using queue name instead of ID)
Examples:
ax annotation-queues get aq_abc123
ax annotation-queues get "my-review-queue" --space sp_abc123

ax annotation-queues update

Update an annotation queue by name or ID. List fields (--annotation-config-id, --annotator-email) fully replace existing values when provided.
ax annotation-queues update <name-or-id> [--space <id>] [options]
OptionDescription
--spaceSpace name or ID (required when using queue name instead of ID)
--nameNew name for the annotation queue
--instructionsNew instructions for annotators (pass empty string to clear)
--annotation-config-idFull replacement list of annotation config IDs (repeat for multiple)
--annotator-emailFull replacement list of annotator emails (repeat for multiple)
Examples:
ax annotation-queues update aq_abc123 --name "accuracy-review-v2"
ax annotation-queues update aq_abc123 --annotator-email new@example.com --annotator-email other@example.com

ax annotation-queues delete

Delete an annotation queue by name or ID. This operation is irreversible.
ax annotation-queues delete <name-or-id> [--space <id>] [--force]
OptionDescription
--spaceSpace name or ID (required when using queue name instead of ID)
--forceSkip the confirmation prompt
Examples:
ax annotation-queues delete aq_abc123 --force
ax annotation-queues delete "my-review-queue" --space sp_abc123 --force

ax annotation-queues list-records

List records in an annotation queue.
ax annotation-queues list-records <name-or-id> [--space <id>] [--limit <n>] [--cursor <cursor>]
OptionDescription
--spaceSpace name or ID (required when using queue name instead of ID)
--limitMaximum number of results to return (default: 15)
--cursorPagination cursor for the next page
Examples:
ax annotation-queues list-records aq_abc123
ax annotation-queues list-records aq_abc123 --limit 50 --output records.json

ax annotation-queues delete-records

Delete records from an annotation queue by record ID. At least one --record-id is required (max 100).
ax annotation-queues delete-records <name-or-id> --record-id <id> [--record-id <id> ...] [--space <id>] [--force]
OptionDescription
--record-idRecord ID to delete (repeat for multiple, max 100)
--spaceSpace name or ID (required when using queue name instead of ID)
--forceSkip the confirmation prompt
Examples:
ax annotation-queues delete-records aq_abc123 --record-id rec_xyz789 --force
ax annotation-queues delete-records aq_abc123 --record-id rec_001 --record-id rec_002 --force

ax annotation-queues annotate-record

Submit an annotation for a record in an annotation queue. Annotations are upserted by annotation config name — call this command multiple times to annotate with different configs.
ax annotation-queues annotate-record <name-or-id> <record-id> --annotation-name <name> [options]
OptionDescription
--annotation-nameName of the annotation config
--scoreNumeric score value
--labelLabel value (for categorical annotation configs)
--textFree-text annotation
--spaceSpace name or ID (required when using queue name instead of ID)
Examples:
# Categorical annotation
ax annotation-queues annotate-record aq_abc123 rec_xyz789 \
  --annotation-name "accuracy" \
  --label "accurate"

# Continuous annotation
ax annotation-queues annotate-record aq_abc123 rec_xyz789 \
  --annotation-name "relevance" \
  --score 0.9

# Freeform annotation
ax annotation-queues annotate-record aq_abc123 rec_xyz789 \
  --annotation-name "reviewer-notes" \
  --text "Response is mostly correct but misses edge cases"

ax annotation-queues assign-record

Assign users to a record in an annotation queue. Fully replaces all existing record-level assignments. Pass no --email flags to remove all assignments.
ax annotation-queues assign-record <name-or-id> <record-id> [--email <email> ...] [--space <id>]
OptionDescription
--emailUser email to assign (repeat for multiple; omit to clear all assignments)
--spaceSpace name or ID (required when using queue name instead of ID)
Examples:
# Assign one user
ax annotation-queues assign-record aq_abc123 rec_xyz789 --email reviewer@example.com

# Assign multiple users
ax annotation-queues assign-record aq_abc123 rec_xyz789 --email user1@example.com --email user2@example.com

# Clear all assignments
ax annotation-queues assign-record aq_abc123 rec_xyz789