Conversation AILog

LLM-friendly URL
POST
https://api.luzmo.com/0.1.0/ailog

Retrieve all turns of an AI conversation, oldest first. Each turn has the same properties as the response of Detail AILog , including the context snapshot.

A conversation response contains at most 200 turns. If the conversation has more turns, truncated is true .

The same access rules and retention period as for Search AILog apply: turns older than the retention period are not returned. An unknown conversation ID, or a conversation without turns in your organization within the retention period, returns a 404 error.

Request parametersResponse schema
Expand all Reset
conversation_id *UUIDrequired

Unique key of the AI conversation to retrieve the turns of. This is the conversation_id of an AI log, or the ID of an AIConversation .

Can be executed by:
Organization Owner
Organization Admin
Can be associated to:
Did this page help you?
Yes No
Language
Shell
Node
Java
.NET
Python
PHP
Install
npm install @luzmo/nodejs-sdk
Example Response
200
400
500
{
  "rows": [
    {
      "id": "5d1c2b3a-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "organization_id": "4a2b6c1d-8e3f-4a5b-9c7d-2e1f0a3b5c6d",
      "suborganization_id": "acme-corp",
      "user_id": "fde42af0-57f8-40e3-880c-3464d9a525ce",
      "authorization_id": "8c9d0e1f-2a3b-4c5d-8e6f-7a8b9c0d1e2f",
      "authorization_type": "embed",
      "authorization_name": "Customer portal",
      "agent": "analyst",
      "routed_to": [],
      "auto_routed": false,
      "task": "",
      "conversation_id": "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e",
      "message_id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
      "parent_message_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
      "prompt": "What was our revenue per region last quarter?",
      "response_text": "Revenue last quarter was highest in Europe (1.2M), followed by North America (0.9M) and APAC (0.4M).",
      "response_summary": "chart",
      "result_types": [
        "text",
        "chart"
      ],
      "result_count": 1,
      "dataset_ids": [
        "24aa02fe-d54d-4217-bd9d-dcdba45c83b3"
      ],
      "asset_ids": [
        "6e7f8a9b-0c1d-4e2f-8a3b-4c5d6e7f8a9b"
      ],
      "latency_ms": 6420,
      "success": true,
      "out_of_scope": false,
      "cancelled": false,
      "failure_reason": null,
      "trace_id": "6f1d2c3b4a5e4f6a8b7c9d0e1f2a3b4c",
      "request_id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
      "locale_id": "en",
      "origin_domain": "app.example.com",
      "started_at": "2026-10-12T09:41:21.104Z",
      "ended_at": "2026-10-12T09:41:27.524Z",
      "created_at": "2026-10-12T09:41:27.530Z",
      "source": "embedded",
      "feature": "chat_component",
      "feedback_rating": 1,
      "flagged": false,
      "user": {
        "id": "fde42af0-57f8-40e3-880c-3464d9a525ce",
        "name": "Jane Doe",
        "email": "jane.doe@example.com",
        "thumbnails": []
      },
      "datasets": [
        {
          "id": "24aa02fe-d54d-4217-bd9d-dcdba45c83b3",
          "name": {
            "en": "Orders"
          },
          "type": "dataset",
          "subtype": "postgresql",
          "account": {
            "id": "7e0899a5-acd5-4235-8017-ff7ae208c88a",
            "provider": "postgresql"
          }
        }
      ],
      "detailStatus": "ready",
      "detail": {
        "assets": [
          {
            "id": "6e7f8a9b-0c1d-4e2f-8a3b-4c5d6e7f8a9b",
            "type": "item",
            "value": {
              "type": "bar-chart",
              "slots": [],
              "options": {}
            }
          }
        ],
        "datasets": [
          {
            "id": "24aa02fe-d54d-4217-bd9d-dcdba45c83b3",
            "name": "Orders",
            "nameI18n": {
              "en": "Orders"
            },
            "aiContext": "One row per order line. Amounts are in EUR, net of returns.",
            "columns": [
              {
                "id": "0f1e2d3c-4b5a-4968-8776-655443322110",
                "name": "Amount",
                "nameI18n": {
                  "en": "Amount"
                },
                "type": "numeric",
                "subtype": null,
                "aiContext": "Order line amount in EUR.",
                "isFormula": false,
                "usedBy": [
                  "analyst"
                ]
              },
              {
                "id": "1e2d3c4b-5a69-4877-8665-544332211009",
                "name": "Region",
                "nameI18n": {
                  "en": "Region"
                },
                "type": "hierarchy",
                "subtype": null,
                "aiContext": null,
                "isFormula": false,
                "usedBy": [
                  "analyst"
                ]
              }
            ]
          }
        ],
        "dashboardAiContext": null,
        "customContext": "Answer in EUR.",
        "tokenFilters": [],
        "securityFilters": {
          "24aa02fe-d54d-4217-bd9d-dcdba45c83b3": []
        },
        "truncated": false,
        "filtersTruncated": false,
        "schemaVersion": 3
      }
    }
  ],
  "count": 1,
  "truncated": false
}