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

# Get Email Template

> Get email template by ID.

Args:
    template_id: Template ID to retrieve.

Returns:
    Email template details.

Raises:
    HTTPException: 404 if template not found.



## OpenAPI

````yaml get /api/v1/admin/email/templates/{template_id}
openapi: 3.1.0
info:
  title: SnackBase
  description: Open-source Backend-as-a-Service (BaaS)
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/admin/email/templates/{template_id}:
    get:
      tags:
        - admin
        - email
        - admin
        - email
      summary: Get Email Template
      description: |-
        Get email template by ID.

        Args:
            template_id: Template ID to retrieve.

        Returns:
            Email template details.

        Raises:
            HTTPException: 404 if template not found.
      operationId: get_email_template_api_v1_admin_email_templates__template_id__get
      parameters:
        - name: template_id
          in: path
          required: true
          schema:
            type: string
            title: Template Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailTemplateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EmailTemplateResponse:
      properties:
        id:
          type: string
          title: Id
        account_id:
          type: string
          title: Account Id
        template_type:
          type: string
          title: Template Type
        locale:
          type: string
          title: Locale
        subject:
          type: string
          title: Subject
        html_body:
          type: string
          title: Html Body
        text_body:
          type: string
          title: Text Body
        enabled:
          type: boolean
          title: Enabled
        is_builtin:
          type: boolean
          title: Is Builtin
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - account_id
        - template_type
        - locale
        - subject
        - html_body
        - text_body
        - enabled
        - is_builtin
        - created_at
        - updated_at
      title: EmailTemplateResponse
      description: |-
        Response schema for email template data.

        Attributes:
            id: Template ID (UUID string).
            account_id: Account ID this template belongs to.
            template_type: Template type identifier (e.g., 'email_verification').
            locale: Language/locale code (e.g., 'en', 'es').
            subject: Email subject line with Jinja2 variables.
            html_body: HTML email body with Jinja2 variables.
            text_body: Plain text email body with Jinja2 variables.
            enabled: Whether this template is active.
            is_builtin: Whether this is a built-in system template.
            created_at: Timestamp when the template was created.
            updated_at: Timestamp when the template was last updated.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````