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

# List dynamic templates with the Email API

> Retrieve dynamic templates for your organization. Without `page` or `items`, returns every template in a `templates` array. With `page` or `items`, returns a paginated `data` array with `page_info`.



## OpenAPI

````yaml openapi1 GET /dynamic_templates
openapi: 3.0.0
info:
  title: Paubox Email API
  description: >
    Public documentation for Paubox's Transactional Email API


    ## Authentication


    Pass your API key as a Bearer token in the Authorization header:

    ```

    Authorization: Bearer YOUR_API_KEY

    ```


    The legacy format `Authorization: Token token=YOUR_API_KEY` is also
    accepted. Bearer is preferred.
  version: 1.0.0
servers:
  - url: https://api.paubox.com/v1/email
    description: Paubox Email API
security:
  - PauboxToken: []
tags:
  - name: Messages
    description: Send individual or bulk transactional email
  - name: Scheduled Send
    description: Schedule, check, reschedule, and cancel future email delivery
  - name: Dynamic Templates
    description: Manage and use dynamic Handlebars templates for email content
  - name: Receiving
    description: Receive inbound email — manage domains, mailboxes, and retrieve messages
  - name: Webhooks
    description: Manage webhook endpoints for delivery and inbound event notifications
paths:
  /dynamic_templates:
    get:
      tags:
        - Dynamic Templates
      summary: List all dynamic templates
      description: >-
        Retrieve dynamic templates for your organization. Without `page` or
        `items`, returns every template in a `templates` array. With `page` or
        `items`, returns a paginated `data` array with `page_info`.
      operationId: listDynamicTemplates
      parameters:
        - name: page
          in: query
          description: Page number, starting at 1.
          schema:
            type: integer
            default: 1
        - name: items
          in: query
          description: Templates per page, from 1 to 100.
          schema:
            type: integer
            default: 25
        - name: search
          in: query
          description: >-
            Case-insensitive match on template name. Applies only to paginated
            requests.
          schema:
            type: string
        - name: order_by
          in: query
          description: Sort field for paginated requests. Defaults to `name`.
          schema:
            type: string
            enum:
              - created_at
              - updated_at
              - id
        - name: order
          in: query
          description: Sort direction for paginated requests.
          schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
      responses:
        '200':
          description: List of templates
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicTemplateListResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - PauboxToken: []
components:
  schemas:
    DynamicTemplateListResponse:
      type: object
      properties:
        templates:
          type: array
          description: Returned when neither `page` nor `items` is set
          items:
            $ref: '#/components/schemas/DynamicTemplateResponse'
        data:
          type: array
          description: Returned when `page` or `items` is set
          items:
            $ref: '#/components/schemas/DynamicTemplateResponse'
        page_info:
          type: object
          description: Returned when `page` or `items` is set
          properties:
            page:
              type: integer
            items:
              type: integer
            count:
              type: integer
              description: Total matching templates
            pages:
              type: integer
    ErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/ErrorResponse_errors'
    DynamicTemplateResponse:
      type: object
      properties:
        id:
          type: integer
          format: int64
          description: Template ID
          example: 123
        api_customer_id:
          type: integer
          format: int64
          description: ID of the account that owns the template
        name:
          type: string
          description: Template name
          example: welcome_template
        body:
          type: string
          description: Template content (Handlebars)
          example: Hello {{name}}, welcome to our service!
        metadata:
          type: object
          nullable: true
        created_at:
          type: string
          description: Template creation timestamp
          format: date-time
        updated_at:
          type: string
          description: Template last update timestamp
          format: date-time
    ErrorResponse_errors:
      type: object
      properties:
        code:
          type: integer
        title:
          type: string
        details:
          type: string
  securitySchemes:
    PauboxToken:
      type: http
      scheme: bearer
      description: >
        Paubox API uses Bearer token authentication in the Authorization header.


        Format: `Authorization: Bearer YOUR_API_KEY_HERE`


        Example: `Authorization: Bearer
        9e5b092b632445b8f570c62ae54f30fda1044305`


        The legacy format `Authorization: Token token=YOUR_API_KEY_HERE` is also
        supported.

````

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