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

# List AI messages

> Lists the workspace-owned AI messages (paginated). Read responses include the prompt both as rich text and as round-trippable plain text using the `{token}` / `{aiResearch:...}` / `{aiSnippet:...}` / `{aiMessage:...}` syntax. Requires the AI variable split to be enabled for the workspace; otherwise returns 403.

    > **Required scope:** `AI_VARIABLES_READ`
    >
    > **Rate limit:** 100 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json get /v1/ai-variables/ai-messages
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/ai-variables/ai-messages:
    get:
      tags:
        - AI Variables
      summary: List AI messages
      description: >-
        Lists the workspace-owned AI messages (paginated). Read responses
        include the prompt both as rich text and as round-trippable plain text
        using the `{token}` / `{aiResearch:...}` / `{aiSnippet:...}` /
        `{aiMessage:...}` syntax. Requires the AI variable split to be enabled
        for the workspace; otherwise returns 403.

            > **Required scope:** `AI_VARIABLES_READ`
            >
            > **Rate limit:** 100 requests per minute
      parameters:
        - schema:
            type: integer
            minimum: 1
            default: 1
          required: false
          name: page
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
          required: false
          name: pageSize
          in: query
        - schema:
            type: string
          required: false
          name: search
          in: query
      responses:
        '200':
          description: Paginated list of AI messages
        '403':
          description: AI variable split not enabled for this workspace
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````