Detail AILog

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

Retrieve a single AI log by its ID, together with a snapshot of the context the AI used to answer it: the generated assets (charts, dashboards, ...), the datasets and columns with their AI context as they were at that moment, the dashboard AI context, the custom context, and the Embed token filters and security filters that were applied.

The detailStatus property indicates whether this snapshot is available:

  • ready : the snapshot is returned in detail .

  • pending : the snapshot is still being stored. This can take up to a minute after the AI log was created, so try again later.

  • unavailable : no snapshot was stored for this AI log. detail is null .

The value of a chart or dashboard asset is null when it can no longer be safely shown, e.g. because you no longer have access to one of its datasets.

The same access rules and retention period as for Search AILog apply. An unknown ID, or the ID of an AI log outside your organization or the retention period, returns a 404 error.

Request parametersResponse schema
id UUID

Unique key of the AI log.

organization_id UUID

Unique key of the organization the AI log belongs to.

suborganization_id STRING

Suborganization of the Embed token that triggered the AI log.

user_id UUID

Unique key of the user who triggered the AI log.

user OBJECT

User who triggered the AI log. Only returned when no attributes are specified. Contains null values if you have no access to the user.

id UUID
name STRING
email STRING
thumbnails ARRAY[OBJECT]
authorization_id UUID

Unique key of the authorization (API or Embed token) that triggered the AI log.

authorization_type STRING

Type of the authorization that triggered the AI log.

authorization_name STRING

Name of the authorization that triggered the AI log.

source STRING

Where the AI interaction was triggered.

feature STRING

Luzmo feature through which the AI interaction was triggered.

agent STRING

AI agent that handled the request. Empty when the request was out of scope before it reached an agent.

routed_to ARRAY[STRING]

Agents the request was routed to.

value STRING
auto_routed BOOLEAN

Whether the request was automatically routed to an agent.

task STRING

Task the agent performed.

conversation_id UUID

Unique key of the AI conversation the AI log belongs to.

message_id UUID

Unique key of the AI message of the response.

parent_message_id UUID

Unique key of the AI message the request replied to.

prompt STRING

Prompt sent to the AI.

response_text STRING

Text of the AI response.

response_summary STRING

Short summary of the response, e.g. chart , dashboard or 3 suggestions .

result_types ARRAY[STRING]

Types of results in the response, e.g. text , chart , dashboard or formula .

value STRING
result_count NUMBER

Number of results in the response.

dataset_ids ARRAY[STRING]

Datasets involved in the AI interaction.

value UUID
asset_ids ARRAY[STRING]

Assets generated in the response.

value UUID
latency_ms NUMBER

Time the AI took to respond, in milliseconds.

success BOOLEAN

Whether the AI interaction succeeded.

out_of_scope BOOLEAN

Whether the request was out of scope for the AI.

cancelled BOOLEAN

Whether the request was cancelled.

failure_reason STRING

Reason why the AI interaction failed.

feedback_rating NUMBER

Feedback rating the user gave on the response: 1 (positive), -1 (negative), 0 (seen but not rated) or null (no feedback).

flagged BOOLEAN

Whether the AI log is flagged.

trace_id STRING

Trace ID of the request, as a 32-character lowercase hexadecimal string.

request_id STRING

Unique key of the request.

locale_id STRING

Locale of the request, e.g. en .

origin_domain STRING

Domain the request originated from.

started_at DATETIME

Moment the AI started processing the request.

ended_at DATETIME

Moment the AI finished processing the request.

created_at DATETIME

Moment the AI log was created.

datasets ARRAY[OBJECT]

Datasets involved in the AI interaction. A dataset only contains null values if you have no access to it or if it was deleted.

id UUID
name OBJECT
type STRING
subtype STRING
account OBJECT
detailStatus STRING

Whether the context snapshot is available: ready (returned in detail ), pending (still being stored, try again later) or unavailable (no snapshot was stored).

detail OBJECT

Snapshot of the context the AI used to answer the request. null when detailStatus is not ready .

assets ARRAY[OBJECT]
datasets ARRAY[OBJECT]
dashboardAiContext STRING
customContext STRING
tokenFilters ARRAY[OBJECT]
securityFilters OBJECT
truncated BOOLEAN
filtersTruncated BOOLEAN
schemaVersion NUMBER
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
{
  "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
  }
}