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

# Get a template



## OpenAPI

````yaml /openapi.json get /marketing/templates/{id}
openapi: 3.0.0
info:
  title: JetEmail API
  version: 1.0.0
  description: API documentation for JetEmail's transactional email service.
servers:
  - url: https://api.jetemail.com
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Email
    description: Send transactional email
  - name: Outbound
    description: 'Outbound sending: keys, SMTP users, domains, logs, suppression'
  - name: Inbound
    description: Inbound routing, domains and forward destinations
  - name: Marketing
    description: >-
      Marketing suite: templates, audiences, contacts, broadcasts, themes,
      assets
externalDocs:
  description: Download OpenAPI Specification
  url: /openapi.json
paths:
  /marketing/templates/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
    get:
      tags:
        - Marketing
      summary: Get a template
      responses:
        '200':
          description: Template
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  template:
                    $ref: '#/components/schemas/MarketingTemplate'
        '404':
          description: Not found
components:
  schemas:
    MarketingTemplate:
      type: object
      properties:
        id:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
        name:
          type: string
          example: Welcome email
        subject:
          type: string
          example: Welcome to JetEmail 👋
        preview_text:
          type: string
        from_name:
          type: string
          description: Default sender name
        from_email:
          type: string
          description: Default from address — must be on a verified sending domain
        reply_to:
          type: string
          description: Default reply-to
        editor_type:
          type: string
          enum:
            - builder
            - html
          example: builder
        theme_id:
          type: string
          nullable: true
        blocks:
          type: string
          description: JSON array of builder blocks (builder templates render from these)
        styles:
          type: string
          description: JSON EmailStyles (global background/font/colors/button defaults)
        html:
          type: string
          description: Rendered email HTML, merge tokens intact
        text:
          type: string
          description: Plaintext fallback
        created_at:
          type: integer
          description: Unix seconds
        updated_at:
          type: integer
          description: Unix seconds
  securitySchemes:
    apiKeyAuth:
      type: http
      scheme: bearer
      description: API key for account management endpoints. Use your api_ prefixed token.

````