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

# Get template details

> Returns the template including the underlying generic wrapper and merged HTML. Example ticket IDs are filtered to existing tickets.




## OpenAPI

````yaml https://dev.enneo.dev/api/mind/docs/open-api get /template/{id}
openapi: 3.0.0
info:
  version: '1'
  title: enneo.MIND API
  description: This describes the API of enneo Mind, the main ticketing backend
  contact:
    name: enneo GmbH
    email: richard@enneo.ai
  license:
    name: Proprietary software
    url: https://enneo.ai
servers:
  - url: https://demo.enneo.ai/api/mind
    description: Production server, demo client
  - url: https://main.enneo.dev/api/mind
    description: Development main branch
  - url: http://localhost:8005/api/mind
    description: Local development server
security:
  - bearerAuth:
      - api
  - cookieAuth:
      - api
paths:
  /template/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: Template ID
        schema:
          type: integer
        example: 12
    get:
      tags:
        - Template
      summary: Get template details
      description: >
        Returns the template including the underlying generic wrapper and merged
        HTML. Example ticket IDs are filtered to existing tickets.
      operationId: getTemplate
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Template'
              examples:
                default:
                  summary: Template with merged HTML
                  value:
                    success: true
                    id: 12
                    tagId: 101
                    emailTemplateId: 5
                    description: 'Reminder: please send your meter reading'
                    message: >-
                      <p>Hallo {{contract.firstName}},</p><p>bitte sende uns den
                      Stand.</p>
                    template: >-
                      <p>Hallo {{contract.firstName}},</p>%MESSAGE%<p>Viele
                      Grüße</p>
                    mergedTemplate: >-
                      <p>Hallo {{contract.firstName}},</p><p>bitte sende uns den
                      Stand.</p><p>Viele Grüße</p>
                    subject: Wir benötigen deinen Zählerstand
                    exampleTicketIds:
                      - 8812
                    attachments: []
        '403':
          description: Unauthorized
        '404':
          description: Template not found
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Template:
      type: object
      properties:
        id:
          type: integer
          description: The id of the template
          example: 1
        tagId:
          type: integer
          description: The id of the tag that the template belongs to
          example: 1
        emailTemplateId:
          type: integer
          description: The id of the email template that is used for wrapping
          example: 1
        description:
          type: string
          description: The description of the intent template
          example: Zählerstand erfolgreich hinterlegt
        message:
          type: string
          description: The template itself
          example: >-
            <p>Wir haben den Zählerstand von {{intent.data.reading}} kWh für den
            {{formatDateDE intent.data.date}} erfasst und im System
            hinterlegt.</p>
        subject:
          type: string
          description: The subject of the email for outgoing emails
          example: Wir brauchen Deine Unterstützung
        exampleTicketIds:
          type: array
          description: >-
            The ids of the tickets that are used as examples for the intent
            template
          items:
            type: integer
            example: 1
        mergedTemplate:
          type: string
          description: The merged template
          example: >-
            Wir haben den Zählerstand von 123 kWh für den 01.01.2022 erfasst und
            im System hinterlegt.
        template:
          type: string
          description: The template itself
          example: >-
            <p>Wir haben den Zählerstand von 123 kWh für den 01.01.2022 erfasst
            und im System hinterlegt.</p>
        success:
          type: boolean
          description: If true, the template is successful
          example: true
    Error:
      type: object
      description: Data format of Enneo error messages
      properties:
        error:
          type: string
          example: Contract 121 could not be processed
          description: Readable error message that should be shown to the user
        details:
          type: string
          example: >-
            Uncatched null point exception in testFunction() in
            /app/src/file:212
          description: Not easily readable error message that is for the developer
        txId:
          type: string
          example: c916167c94
          description: >-
            Internal transaction id. Useful for debugging. Corresponds to the
            OpenTelemetry trace ID.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT-based authentication
      x-scopes:
        api: Full access to the API
    cookieAuth:
      type: apiKey
      in: cookie
      name: connect.sid
      description: Cookie-based authentication
      x-scopes:
        api: Full access to the API

````