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

# List email templates

> The workspace's email templates by name, draft and published, without their HTML (GET /v1/templates/{template_id} has it). Survey emails, which their survey manages, are left out, as are deleted templates.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/templates
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/templates:
    get:
      tags:
        - templates
      summary: List email templates
      description: >-
        The workspace's email templates by name, draft and published, without
        their HTML (GET /v1/templates/{template_id} has it). Survey emails,
        which their survey manages, are left out, as are deleted templates.
      operationId: templates_list
      parameters:
        - description: Only templates in this state
          in: query
          name: state
          required: false
          schema:
            anyOf:
              - enum:
                  - draft
                  - published
                type: string
              - type: 'null'
            default: null
        - description: Only templates of this type
          in: query
          name: type
          required: false
          schema:
            anyOf:
              - maxLength: 64
                type: string
              - type: 'null'
            default: null
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailTemplatesResponse'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    EmailTemplatesResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/EmailTemplateSummary'
          title: Data
          type: array
      required:
        - data
      title: EmailTemplatesResponse
      type: object
    EmailTemplateSummary:
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        creator:
          anyOf:
            - type: string
            - type: 'null'
          description: The email of the member who created it; null when an API key did
          title: Creator
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        editor:
          description: >-
            Which of the app's editors opens it: visual (the drag-and-drop
            builder, which keeps its own design of the email) or html (its HTML
            editor)
          enum:
            - visual
            - html
          title: Editor
          type: string
        id:
          title: Id
          type: string
        name:
          description: Unique among templates of its type (deleted ones included)
          title: Name
          type: string
        sender_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Sender Email
        sender_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Sender Name
        state:
          description: >-
            draft or published. The app offers only published templates when
            someone sets up a campaign or flow, but a campaign or flow already
            using a template reads it each time it sends, draft or published: a
            change goes out on its next send. Deleting a template is what stops
            it
          enum:
            - draft
            - published
          title: State
          type: string
        subject:
          anyOf:
            - type: string
            - type: 'null'
          description: 'Sent as written: merge tags in a subject are not filled in'
          title: Subject
        type:
          description: >-
            promotion, newsletter, updates or custom, as the app offers them. An
            updates email may go without an unsubscribe link; the others need
            one to be published
          title: Type
          type: string
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - id
        - name
        - description
        - type
        - state
        - editor
        - subject
        - sender_name
        - sender_email
        - creator
        - created_at
        - updated_at
      title: EmailTemplateSummary
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.