> ## 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.

# Get an ai message

> Returns a single workspace-owned ai message by id. 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/{aiMessageId}
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/{aiMessageId}:
    get:
      tags:
        - AI Variables
      summary: Get an ai message
      description: >-
        Returns a single workspace-owned ai message by id. 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: string
            minLength: 1
          required: true
          name: aiMessageId
          in: path
      responses:
        '200':
          description: AI message retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  data:
                    type: object
                    additionalProperties: true
                required:
                  - status
                  - message
        '403':
          description: AI variable split not enabled for this workspace
        '404':
          description: AI message not found in this workspace
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````