> ## 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 message template folder

> Get a message template folder with its child folders, AI variables, and breadcrumb ancestors.

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



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json get /v1/ai-variables/folders/message-templates/{folderId}
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/folders/message-templates/{folderId}:
    get:
      tags:
        - AI Variables
      summary: Get message template folder
      description: >-
        Get a message template folder with its child folders, AI variables, and
        breadcrumb ancestors.

            > **Required scope:** `AI_VARIABLES_READ`
            >
            > **Rate limit:** 100 requests per minute
      parameters:
        - schema:
            type: string
            description: AI variable folder ID
          required: true
          description: AI variable folder ID
          name: folderId
          in: path
      responses:
        '200':
          description: Folder retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      id:
                        type: number
                      name:
                        type: string
                      parentId:
                        type:
                          - number
                          - 'null'
                      entity:
                        type: string
                        enum:
                          - CONTACT
                          - COMPANY
                          - AI_MESSAGE
                          - AI_SNIPPET
                          - MESSAGE_TEMPLATE
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                      aiVariablesCount:
                        type: number
                      subfoldersCount:
                        type: number
                      totalSubfoldersCount:
                        type: number
                      totalAiVariablesCount:
                        type: number
                      children:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: number
                            name:
                              type: string
                            parentId:
                              type:
                                - number
                                - 'null'
                            createdAt:
                              type: string
                              format: date-time
                            updatedAt:
                              type: string
                              format: date-time
                            entity:
                              type: string
                              enum:
                                - CONTACT
                                - COMPANY
                                - AI_MESSAGE
                                - AI_SNIPPET
                                - MESSAGE_TEMPLATE
                            aiVariablesCount:
                              type: number
                            subfoldersCount:
                              type: number
                          required:
                            - id
                            - name
                            - parentId
                            - createdAt
                            - updatedAt
                            - entity
                            - aiVariablesCount
                            - subfoldersCount
                      parent:
                        type:
                          - object
                          - 'null'
                        properties:
                          id:
                            type: number
                          name:
                            type: string
                        required:
                          - id
                          - name
                      aiVariables:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: Entity ID.
                            name:
                              type: string
                              description: Entity name.
                            description:
                              type:
                                - string
                                - 'null'
                              description: Entity description, when available.
                            folderId:
                              type:
                                - number
                                - 'null'
                              description: Folder ID this entity currently belongs to.
                            createdAt:
                              type: string
                              format: date-time
                              description: Creation timestamp.
                            updatedAt:
                              type: string
                              format: date-time
                              description: Last update timestamp.
                          required:
                            - id
                            - name
                            - description
                            - folderId
                            - createdAt
                            - updatedAt
                      ancestors:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: number
                            name:
                              type: string
                            parentId:
                              type:
                                - number
                                - 'null'
                          required:
                            - id
                            - name
                            - parentId
                    required:
                      - id
                      - name
                      - parentId
                      - entity
                      - createdAt
                      - updatedAt
                      - aiVariablesCount
                      - subfoldersCount
                      - children
                      - parent
                      - aiVariables
                      - ancestors
                required:
                  - status
                  - message
                  - data
        '403':
          description: >-
            AI variable split is not enabled for this workspace; AI
            message/snippet/template folders are unavailable.
        '404':
          description: Folder not found
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````