LLM Observability

Add annotation queue interactions

Add one or more interactions to an annotation queue. At least one interaction must be provided. Each interaction has a type:

  • trace, experiment_trace, session: content_id references the upstream entity; the server fetches the actual content.
  • display_block: omit content_id and provide the rendered content in display_block. The server generates content_id as a deterministic hash of the block list.

Items of different types can be mixed in a single request.

post/api/v2/llm-obs/v1/annotation-queues/{queue_id}/interactions

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/llm-obs/v1/annotation-queues/{queue_id}/interactions
  • Auth
    API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY

Path parameters

queue_idstring required

The ID of the LLM Observability annotation queue.

Request body

Example request

{
  "data": {
    "attributes": {
      "interactions": [
        {
          "content_id": "trace-abc-123",
          "type": "trace"
        }
      ]
    },
    "type": "interactions"
  }
}

Response

Created

Example response

{
  "data": {
    "attributes": {
      "interactions": [
        {
          "already_existed": false,
          "content_id": "trace-abc-123",
          "id": "00000000-0000-0000-0000-000000000000",
          "type": "trace"
        }
      ]
    },
    "id": "00000000-0000-0000-0000-000000000001",
    "type": "interactions"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.