> ## Documentation Index
> Fetch the complete documentation index at: https://laminar.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add labeling queue items

> Adds items to a labeling queue, optionally deduplicating them with idempotency keys.



## OpenAPI

````yaml /openapi/openapi.yaml post /v1/labeling_queues/{queue_id}/items
openapi: 3.1.0
info:
  title: Laminar API
  version: 1.0.0
  description: Public HTTP API for ingesting and managing data in a Laminar project.
  license:
    name: Apache 2.0
    identifier: Apache-2.0
servers:
  - url: https://api.lmnr.ai
    description: Laminar Cloud
security:
  - projectApiKey: []
tags:
  - name: Ingestion
    description: Send telemetry data to Laminar.
  - name: Traces
    description: Update trace data after ingestion.
  - name: SQL
    description: Query project data with read-only SQL.
  - name: Projects
    description: Resolve project information.
  - name: Datasets
    description: Read datasets and add datapoints.
  - name: Evaluations
    description: Create evaluation runs and record their results.
  - name: Labeling queues
    description: Add items to labeling queues.
  - name: Signals
    description: Manage automated evaluations of project traces.
  - name: LLM profiles
    description: Configure workspace LLM credentials and models for self-hosted Signals.
paths:
  /v1/labeling_queues/{queue_id}/items:
    post:
      tags:
        - Labeling queues
      summary: Add labeling queue items
      description: >-
        Adds items to a labeling queue, optionally deduplicating them with
        idempotency keys.
      operationId: createLabelingQueueItems
      parameters:
        - $ref: '#/components/parameters/QueueId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateLabelingQueueItemsRequest'
      responses:
        '201':
          description: Items created.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LabelingQueueItemResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - projectApiKey: []
        - ingestApiKey: []
components:
  parameters:
    QueueId:
      name: queue_id
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/Uuid'
  schemas:
    CreateLabelingQueueItemsRequest:
      type: object
      required:
        - items
      properties:
        items:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/LabelingQueueItemRequest'
    LabelingQueueItemResponse:
      type: object
      required:
        - id
        - createdAt
      properties:
        id:
          $ref: '#/components/schemas/Uuid'
        createdAt:
          type: string
          format: date-time
    Uuid:
      type: string
      format: uuid
    LabelingQueueItemRequest:
      type: object
      required:
        - data
        - target
      properties:
        data:
          $ref: '#/components/schemas/JsonValue'
        target:
          $ref: '#/components/schemas/JsonValue'
        metadata:
          type: object
          additionalProperties: true
          default: {}
        idempotencyKey:
          type:
            - string
            - 'null'
    Error:
      oneOf:
        - type: object
          properties:
            error:
              type: string
          required:
            - error
        - type: string
    JsonValue: {}
  responses:
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid API key.
    NotFound:
      description: The requested resource was not found in this project.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    projectApiKey:
      type: http
      scheme: bearer
      bearerFormat: Project API key
      description: A Laminar project API key.
    ingestApiKey:
      type: http
      scheme: bearer
      bearerFormat: Ingest-only API key
      description: A project API key restricted to ingestion operations.

````