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

# List templates for a WhatsApp channel

> Requires `whatsapp_templates:read`.



## OpenAPI

````yaml /openapi.json get /whatsapp-templates/{channelId}
openapi: 3.0.3
info:
  title: Visito M2M API
  version: 1.0.0
  description: >-
    Tenant-scoped server-to-server API for channels, conversations, commerce,
    custom AI tools, and WhatsApp templates. Send operations are asynchronous
    and return queued acknowledgements. Expansion adds conversation controls,
    knowledge, sales opportunities, delivery status, reporting, and signed
    webhooks.
servers:
  - url: https://platform-api.visitoai.com/m2m/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Channels
  - name: Conversations
  - name: Commerce
  - name: Custom tools
  - name: WhatsApp templates
  - name: Properties
  - name: Knowledge
  - name: Sales CRM
  - name: Delivery
  - name: Reporting
  - name: Webhooks
paths:
  /whatsapp-templates/{channelId}:
    get:
      tags:
        - WhatsApp templates
      summary: List templates for a WhatsApp channel
      description: Requires `whatsapp_templates:read`.
      operationId: listWhatsappTemplates
      parameters:
        - $ref: '#/components/parameters/ChannelId'
      responses:
        '200':
          description: WhatsApp templates
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhatsappTemplatesResponse'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    ChannelId:
      name: channelId
      in: path
      required: true
      schema:
        type: string
  schemas:
    WhatsappTemplatesResponse:
      type: object
      required:
        - templates
      properties:
        templates:
          type: array
          items:
            $ref: '#/components/schemas/WhatsappTemplate'
    WhatsappTemplate:
      type: object
      required:
        - name
        - status
      properties:
        id:
          type: string
        name:
          type: string
        status:
          type: string
        language:
          type: string
        category:
          type: string
          enum:
            - UTILITY
            - MARKETING
            - AUTHENTICATION
        components:
          type: array
          items:
            type: object
            additionalProperties: true
      additionalProperties: true
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: M2M_AUTH_INSUFFICIENT_SCOPE
            message:
              type: string
            details:
              type: object
              additionalProperties: true
      example:
        error:
          code: M2M_AUTH_INSUFFICIENT_SCOPE
          message: M2M credential does not have required scope.
          details:
            requiredScopes:
              - conversations:write
            missingScopes:
              - conversations:write
  responses:
    Error:
      description: Structured error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Visito M2M API key
      description: Server-side tenant-scoped credential created from Build > API Keys.

````