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

# List Email Templates



## OpenAPI

````yaml get /email/templates
openapi: 3.1.0
info:
  title: Decoda API
  description: External API documentation for the Decoda Health platform.
  version: '1.0'
servers: []
security: []
paths:
  /email/templates:
    get:
      tags:
        - Email
      summary: List Email Templates
      operationId: list_email_templates_email_templates_get
      parameters:
        - name: TENANT
          in: header
          required: true
          schema:
            type: string
            title: Tenant
          description: The tenant you are making this request on behalf of
        - name: API-KEY
          in: header
          required: true
          schema:
            type: string
            title: Api-Key
          description: Your api key
        - name: page
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Page
        - name: per_page
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            title: Per Page
        - name: sort_by
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Sort By
        - name: sort_direction
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - asc
                  - desc
                type: string
              - type: 'null'
            title: Sort Direction
        - name: location_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Location Id
        - name: is_archived
          in: query
          required: false
          schema:
            type: boolean
            default: false
            title: Is Archived
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Search
        - name: created_by_provider_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Created By Provider Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page_EmailTemplateDetail_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Page_EmailTemplateDetail_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/EmailTemplateDetail'
          type: array
          title: Data
        total:
          type: integer
          title: Total
      type: object
      required:
        - data
        - total
      title: Page[EmailTemplateDetail]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EmailTemplateDetail:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        subject:
          type: string
          title: Subject
        createdByProviderId:
          anyOf:
            - type: string
            - type: 'null'
          title: Createdbyproviderid
        createdByProviderName:
          anyOf:
            - type: string
            - type: 'null'
          title: Createdbyprovidername
        createdDate:
          type: string
          format: date-time
          title: Createddate
        updatedDate:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updateddate
        body:
          type: string
          title: Body
        bodyFormat:
          $ref: '#/components/schemas/EmailTemplateBodyFormat'
      type: object
      required:
        - id
        - name
        - subject
        - createdDate
        - body
        - bodyFormat
      title: EmailTemplateDetail
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    EmailTemplateBodyFormat:
      type: string
      enum:
        - TIPTAP_JSON
        - HTML
      title: EmailTemplateBodyFormat
      description: >-
        How an email template's ``body`` is encoded.


        TIPTAP_JSON is what the composer authors and is what every email surface
        can

        load natively. HTML is for markup pasted in from elsewhere — it is
        parsed

        into the editor on load, so it round-trips as content rather than
        markup.

````