---
title: "Add a discovered item to an Annotation Queue"
method: POST
path: "/api/{org_id}/annotation_queues/{queue_id}/items"
tags: ["AnnotationQueues"]
---

# Add a discovered item to an Annotation Queue

`POST /api/{org_id}/annotation_queues/{queue_id}/items`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/annotation_queues/{queue_id}/items`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/annotation_queues/:queue_id/items/post.ts> (a function with typed inputs; its response is checked against the schema)

Adds a discovered span, trace, or session to one Annotation Queue. Returns a conflict when the same reference is already in the Queue.

## Path parameters

- `org_id` string, required
- `queue_id` string, required

## Request body

- object
  - `refId` string, required: Span, trace, or session identifier, according to `refType`.
  - `refTraceId` string, nullable: Owning trace ID. Required only when `refType` is `span`.
  - `refTraceStartTime` integer, required: Reference trace start time in microseconds. Required for every scope and used as the lower bound for Workbench score/annotation searches.
  - `refType` string, required: Discovered object scope: `span`, `trace`, or `session`.

## Response `200`

- object
  - `archivedAt` integer, nullable
  - `createdAt` integer, required
  - `id` string, required
  - `inputPreview` string, nullable: Bounded first-user-turn excerpt captured at enqueue; null when unavailable.
  - `orgId` string, required
  - `queueId` string, required
  - `queueName` string, nullable
  - `refId` string, required
  - `refTraceId` string, nullable
  - `refTraceStartTime` integer, required
  - `refType` string, required
  - `reviewedAt` integer, nullable
  - `status` string, required
  - `updatedAt` integer, required

## Other responses

- `400`: Bad Request
- `404`: Annotation Queue not found
- `409`: Item is already queued in this Annotation Queue

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
