{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/miro/json-schema/miro-get-ai-interaction-logs-response-schema.json",
  "title": "GetAiInteractionLogsResponse",
  "description": "Response for query using cursor and filter parameters.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/miro-ai-interaction-logs-api-openapi.yml#/components/schemas/GetAiInteractionLogsResponse",
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "description": "The maximum number of results to return per call. If the number of logs in the response is\ngreater than the limit specified, the response returns the cursor parameter with a value.\n",
      "format": "int32"
    },
    "size": {
      "type": "integer",
      "description": "Number of results returned in the response considering the cursor and the limit values sent in the request. For example, if there are 20 results, the request does not have a cursor value, and the limit set to 10, the size of the results will be 10. In this example, the response will also return a cursor value that can be used to retrieve the next set of 10 remaining results in the collection.\n",
      "format": "int32"
    },
    "data": {
      "$ref": "#/$defs/AiInteractionLogList"
    },
    "cursor": {
      "type": "string",
      "description": "Indicator of the position of the next page of the result. To retrieve the next page, make another query setting its cursor field to the value returned by the current query. If the value is empty, there are no more pages to fetch.\n"
    },
    "type": {
      "type": "string",
      "description": "Type of the object returned.",
      "default": "cursor-list"
    }
  },
  "$defs": {
    "AiInteractionLog": {
      "type": "object",
      "description": "Contains information about a single AI interaction log entry.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the AI interaction log entry."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time when the AI interaction occurred.<br>Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).\n"
        },
        "storedAt": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time when the AI interaction log was stored.<br>Format: UTC, adheres to [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601), includes a [trailing Z offset](https://en.wikipedia.org/wiki/ISO_8601#Coordinated_Universal_Time_(UTC)).\n"
        },
        "sessionId": {
          "type": "string",
          "description": "Unique identifier of the session during which the AI interaction occurred."
        },
        "messageId": {
          "type": "string",
          "description": "Unique identifier of the message associated with the AI interaction."
        },
        "object": {
          "$ref": "#/$defs/AiInteractionLogObject"
        },
        "aiFeatureName": {
          "type": "string",
          "description": "Name of the AI feature that was used during the interaction."
        },
        "actor": {
          "$ref": "#/$defs/AiInteractionLogActor"
        },
        "logType": {
          "type": "string",
          "description": "Type of the AI interaction log entry."
        },
        "details": {
          "type": "object",
          "description": "Additional details about the AI interaction. The structure of this object varies depending on the AI feature used. The text may contain unstructured data that could reveal information used in interactions with the LLM.",
          "additionalProperties": true
        }
      }
    },
    "AiInteractionLogActor": {
      "type": "object",
      "description": "Contains information about the user who performed the AI interaction.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the user who performed the AI interaction."
        },
        "email": {
          "type": "string",
          "description": "Email of the user who performed the AI interaction."
        },
        "name": {
          "type": "string",
          "description": "Name of the user who performed the AI interaction."
        }
      }
    },
    "AiInteractionLogList": {
      "type": "array",
      "description": "Contains the list of AI interaction logs.",
      "items": {
        "$ref": "#/$defs/AiInteractionLog"
      }
    },
    "AiInteractionLogObject": {
      "type": "object",
      "description": "Contains information about the Miro object involved in the AI interaction.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier of the Miro object involved in the AI interaction, e.g., Board ID or Organization ID.\n"
        },
        "type": {
          "type": "string",
          "description": "Type of the Miro object involved in the AI interaction, e.g., \"board, \"organization\"."
        }
      }
    }
  }
}