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

# List WhatsApp templates

> Returns WhatsApp templates and their provider approval status.



## OpenAPI

````yaml /openapi.yaml get /v1/whatsapp-templates
openapi: 3.1.0
info:
  title: Quentli REST API
  version: 1.0.0
  description: OpenAPI spec for Quentli REST endpoints.
servers:
  - url: https://api.quentli.com
    description: Production API
  - url: https://api.staging.quentli.com
    description: Staging API for production-like validation
security:
  - organizationApiKey: []
  - oauthAccessToken: []
tags:
  - name: Auth
  - name: Management
  - name: Billing
  - name: Catalog
  - name: Customers
  - name: Invoices
  - name: Payment Methods
  - name: Payment Sessions
  - name: Payments
  - name: Subscriptions
  - name: Tax Invoices
  - name: Webhooks
  - name: Messaging
paths:
  /v1/whatsapp-templates:
    get:
      tags:
        - Messaging
      summary: List WhatsApp templates
      description: Returns WhatsApp templates and their provider approval status.
      operationId: whatsapp_templates_list
      parameters:
        - schema:
            type: object
            properties:
              id:
                $ref: '#/components/schemas/StringFilter'
              name:
                $ref: '#/components/schemas/StringFilter'
              createdAt:
                $ref: '#/components/schemas/DateTimeFilter'
            additionalProperties: false
            description: Fields encoded with `qs` bracket notation.
          required: false
          description: Fields encoded with `qs` bracket notation.
          style: deepObject
          explode: true
          name: filter
          in: query
        - schema:
            type: number
            minimum: 0
            default: 0
            description: Pagination offset.
            example: 0
          required: false
          description: Pagination offset.
          name: skip
          in: query
        - schema:
            type: number
            minimum: 1
            maximum: 100
            default: 20
            description: Pagination limit.
            example: 20
          required: false
          description: Pagination limit.
          name: take
          in: query
      responses:
        '200':
          description: WhatsApp templates list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetWhatsappTemplatesResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '403':
          description: Permission denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
components:
  schemas:
    StringFilter:
      type: object
      properties:
        equals:
          type: string
        in:
          type: array
          items:
            type: string
        notIn:
          type: array
          items:
            type: string
        lt:
          type: string
        lte:
          type: string
        gt:
          type: string
        gte:
          type: string
        contains:
          type: string
        startsWith:
          type: string
        endsWith:
          type: string
        search:
          type: string
        not:
          $ref: '#/components/schemas/StringFilter'
      additionalProperties: false
    DateTimeFilter:
      type: object
      properties:
        equals:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
        lt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
        lte:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
        gt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
        gte:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
        not:
          $ref: '#/components/schemas/DateTimeFilter'
      additionalProperties: false
    GetWhatsappTemplatesResponse:
      type: array
      items:
        $ref: '#/components/schemas/WhatsappTemplate'
      description: List of WhatsApp templates.
    UserError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
          required:
            - message
      required:
        - error
      additionalProperties: false
      description: Standard user-facing error response envelope.
    WhatsappTemplate:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the WhatsApp template.
          example: wat_1234567890abcdefghij
        createdAt:
          type: string
          format: date-time
          description: When the template was created.
        updatedAt:
          type: string
          format: date-time
          description: When the template was last updated.
        organizationId:
          type:
            - string
            - 'null'
          description: Organization that owns the template.
        whatsappAccountId:
          type:
            - string
            - 'null'
          description: WhatsApp Business Account the template belongs to.
        channelId:
          type:
            - string
            - 'null'
          description: Legacy 360dialog channel, if any.
        name:
          type: string
          description: Template name registered with WhatsApp.
          example: recordatorio_pago
        status:
          type: string
          enum:
            - APPROVED
            - ARCHIVED
            - DELETED
            - DISABLED
            - REJECTED
            - PAUSED
            - FLAGGED
            - IN_APPEAL
            - LIMIT_EXCEEDED
            - PENDING
            - PENDING_DELETION
            - SUBMITTED
            - UNKNOWN
          description: Provider approval status.
        rejectedReason:
          type: string
          enum:
            - ABUSIVE_CONTENT
            - INCORRECT_CATEGORY
            - INVALID_FORMAT
            - PROMOTIONAL
            - SCAM
            - TAG_CONTENT_MISMATCH
            - NONE
          description: Why the provider rejected the template, if it did.
        category:
          type: string
          enum:
            - AUTHENTICATION
            - FREE_SERVICE
            - MARKETING
            - UTILITY
          description: WhatsApp template category.
        allowCategoryChange:
          type: boolean
          description: Whether WhatsApp may recategorize the template.
        language:
          type: string
          description: Template language code.
          example: es_MX
        parameterFormat:
          type: string
          enum:
            - NAMED
            - POSITIONAL
          description: Whether variables are positional or named.
        deletedAt:
          type:
            - string
            - 'null'
          format: date-time
          description: When the template was deleted, if applicable.
        deletedById:
          type:
            - string
            - 'null'
          description: User who deleted the template.
        components:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              type:
                type: string
                enum:
                  - HEADER
                  - BODY
                  - FOOTER
                  - BUTTONS
              format:
                type:
                  - string
                  - 'null'
              text:
                type:
                  - string
                  - 'null'
            required:
              - id
              - type
              - format
              - text
          description: Header, body, footer, and button components.
      required:
        - id
        - createdAt
        - updatedAt
        - organizationId
        - whatsappAccountId
        - channelId
        - name
        - status
        - rejectedReason
        - category
        - allowCategoryChange
        - language
        - parameterFormat
        - deletedAt
        - deletedById
      description: A WhatsApp message template submitted to the provider.
  securitySchemes:
    organizationApiKey:
      type: http
      scheme: bearer
      description: 'Organization API key using `Authorization: Bearer sk_...`.'
    oauthAccessToken:
      type: http
      scheme: bearer
      bearerFormat: OAuth 2.1
      description: 'OAuth access token using `Authorization: Bearer qoa_at_...`.'

````

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