Api Annotation Items Queue List

GET/POST /api/annotation-items/queue/ Worker queue view: MY assigned items for focused annotation work. Used by everyone (including admins) when doing annotation work. Permission: No permission required (self-filtering to assignee=current_user) Features: - Prefetch FULL objects for instant navigation - Privacy: Only see OWN scores - Optional filtering (source_type, status) - Pagination support (page, page_size query params) Use cases: - Workers see their work queue - Admins see their queue when annotating - Focused view - only MY items Query Parameters (GET): - page: Page number (default: 1) - page_size: Items per page (default: 100, max: 1000) - source_type: Filter by source type (optional) - status: Filter by status (optional) Request Body (POST): { "filters": { "source_type": {"operator": "", "value": "logs"}, "status": {"operator": "", "value": "pending"} } } Response (paginated): { "count": 5, "next": "/api/annotation-items/queue/?page=2", "previous": null, "results": [ { "id": "item_1", "status": "pending", "full_object": {...}, "scores": [...] } ] }

Authentication

AuthorizationBearer
JWT access token or Respan API key

Query parameters

pageintegerOptional
A page number within the paginated result set.
page_sizeintegerOptional
Number of results to return per page.

Response

countinteger
resultslist of objects
nextstring or nullformat: "uri"
previousstring or nullformat: "uri"
total_countinteger
current_filtersobject

Pydantic model for FilterParamDict. A dictionary that maps metric names to their filter parameters.

Each key is a metric name (str), and each value can be:

  • A single MetricFilterParamPydantic (one condition)
  • A List[MetricFilterParamPydantic] (multiple conditions for same metric)
  • A FilterBundlePydantic (nested filter bundle with connector)

Note: Uses extra=“allow” for dynamic metric name fields. The pydantic_extra annotation tells Pydantic what types to expect for extra fields, and generates typed additionalProperties in JSON Schema.

filters_dataobject