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

# List Templates

> List message templates with filtering.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/templates
openapi: 3.1.0
info:
  title: wazzapi Public API
  description: >-
    Public API surface for external API-key clients. Only stable /api/v1
    endpoints are included.


    ## Webhook deliveries

    This reference also includes the webhook requests Wazzapi sends to your
    endpoint for incoming messages, message status updates, and device status
    changes. See the `Incoming webhooks` section in the sidebar for headers,
    payload fields, and concrete examples.
  version: 1.0.0
servers: []
security: []
tags:
  - name: Incoming webhooks
    description: >-
      POST deliveries that Wazzapi sends to your webhook endpoint after you
      subscribe to supported events. Verify the signature against the raw body
      and return a 2xx response quickly.
paths:
  /api/v1/templates:
    get:
      tags:
        - templates
      summary: List Templates
      description: List message templates with filtering.
      operationId: list_templates_api_v1_templates_get
      parameters:
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
        - name: category
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Category
        - name: search
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Search
        - name: sort_by
          in: query
          required: false
          schema:
            type: string
            default: created_at
            title: Sort By
        - name: sort_order
          in: query
          required: false
          schema:
            type: string
            default: desc
            title: Sort Order
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TemplateListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/TemplateItem'
          type: array
          title: Data
        pagination:
          additionalProperties: true
          type: object
          title: Pagination
      type: object
      required:
        - data
        - pagination
      title: TemplateListResponse
      description: Response for listing templates.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TemplateItem:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        name:
          type: string
          title: Name
        category:
          type: string
          title: Category
        content:
          type: string
          title: Content
        variables:
          items:
            type: string
          type: array
          title: Variables
        builtin_variables:
          items:
            type: string
          type: array
          title: Builtin Variables
        custom_variables:
          items:
            type: string
          type: array
          title: Custom Variables
        media_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Media Type
        media_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Media Url
        times_used:
          type: integer
          title: Times Used
        last_used_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Used At
        created_at:
          type: string
          title: Created At
      type: object
      required:
        - id
        - name
        - category
        - content
        - variables
        - builtin_variables
        - custom_variables
        - times_used
        - created_at
      title: TemplateItem
      description: Template list item.
    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

````