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

# Get Template Details

> This API endpoint is used to retrieve the details of a specific
email template by its ID in Mailercloud.



## OpenAPI

````yaml /openapi-v1.json get /templates/details/{id}
openapi: 3.1.0
info:
  title: Mailercloud Marketing API
  version: 1.0.0
  description: >-
    Campaigns, contacts, lists, segments, automations, and webhooks for the
    Mailercloud Marketing Platform.
servers:
  - url: https://cloudapi.mailercloud.com/v1
security:
  - apiKey: []
tags:
  - name: Campaigns
  - name: Contacts
  - name: Lists
  - name: Tags
  - name: Segments
  - name: Custom Properties
  - name: Senders
  - name: Templates
  - name: Automations
  - name: Webhooks
  - name: Webforms
  - name: Inbox Tracker
  - name: Account
paths:
  /templates/details/{id}:
    get:
      tags:
        - Templates
      summary: Get Template Details
      description: |-
        This API endpoint is used to retrieve the details of a specific
        email template by its ID in Mailercloud.
      operationId: get-template-details
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      plainText:
                        type: string
                      name:
                        type: string
                      html:
                        type: string
                      categoryId:
                        type: integer
                      createdDate:
                        type: string
                      modifiedDate:
                        type: string
                      status:
                        type: string
                x-examples:
                  Example 1:
                    data:
                      plainText: Hello Reader
                      name: temp 1
                      html: <html>....</html>
                      categoryId: 10
                      createdDate: '2023-06-28 14:04:16'
                      modifiedDate: '2023-07-03 11:24:15'
                      status: active
              examples:
                Example-1:
                  value:
                    data:
                      plainText: Hello Reader
                      id: k
                      name: temp 1
                      html: <html>....</html>
                      categoryId: 10
                      createdDate: '2023-06-28 14:04:16'
                      modifiedDate: '2023-07-03 11:24:15'
                      status: active
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                x-examples:
                  Example 1:
                    error: Template id does not exist
              examples:
                Example-1:
                  value:
                    error: Template id does not exist
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                        message:
                          type: string
                x-examples:
                  Example 1:
                    errors:
                      - field: ''
                        message: Authorization failed
              examples:
                Example-1:
                  value:
                    errors:
                      - field: ''
                        message: Authorization failed
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Your Mailercloud API key (plain text, no Bearer prefix). Create keys in
        Settings → API.

````