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

# List message templates

> Lists the WhatsApp (official and unofficial), email, and SMS templates a flow can send, with a text preview, WhatsApp approval status, and the customer data each variable renders. Use the id as template_id when creating the flow.



## OpenAPI

````yaml /openapi.en.json get /v1/message-templates
openapi: 3.1.0
info:
  title: Bevits API
  version: 1.0.0
  description: >-
    Public API for querying CRM, purchase, and automation data from a Bevits
    organization and creating automations as drafts for review and activation.
  license:
    name: Proprietary
    identifier: LicenseRef-Proprietary
servers:
  - url: https://api.bevits.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: System
    description: API availability.
  - name: Identity
    description: Organization and API key identity.
  - name: Customers
    description: Customers and their relationships.
  - name: Segments
    description: Customer segments.
  - name: Purchases
    description: Purchases imported from integrations.
  - name: CRM data
    description: Tags and attribute definitions.
  - name: Automations
    description: Automation flows.
  - name: Campaigns
    description: Email campaigns.
paths:
  /v1/message-templates:
    get:
      tags:
        - Automations
      summary: List message templates
      description: >-
        Lists the WhatsApp (official and unofficial), email, and SMS templates a
        flow can send, with a text preview, WhatsApp approval status, and the
        customer data each variable renders. Use the id as template_id when
        creating the flow.
      operationId: listMessageTemplates
      parameters:
        - $ref: '#/components/parameters/MessageTemplateChannel'
      responses:
        '200':
          $ref: '#/components/responses/MessageTemplateList'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  parameters:
    MessageTemplateChannel:
      name: channel
      in: query
      description: Filters templates by channel.
      schema:
        type: string
        enum:
          - whatsapp
          - whatsapp_unofficial
          - email
          - sms
  responses:
    MessageTemplateList:
      description: Message templates available to flows.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MessageTemplateList'
    Unauthorized:
      description: Missing, invalid, expired, or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              type: authentication_error
              message: Invalid API key.
              request_id: req_07f6cdc3c20249d6afcd90b4
    ValidationError:
      description: A parameter failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              type: validation_error
              message: Invalid query parameters.
              param: limit
              request_id: req_07f6cdc3c20249d6afcd90b4
    RateLimited:
      description: Request limit exceeded.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/RateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/RateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/RateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RateLimitErrorResponse'
    InternalError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    MessageTemplateList:
      type: object
      required:
        - object
        - data
        - has_more
      properties:
        object:
          type: string
          const: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/MessageTemplate'
        has_more:
          type: boolean
          const: false
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/Error'
    RateLimitErrorResponse:
      allOf:
        - $ref: '#/components/schemas/ErrorResponse'
        - type: object
          required:
            - retry_after
          properties:
            retry_after:
              type: integer
              minimum: 1
              description: Seconds before retrying.
    MessageTemplate:
      type: object
      required:
        - object
        - id
        - channel
        - name
        - variables
      properties:
        object:
          type: string
          const: message_template
        id:
          type: string
          pattern: ^(wtp|etp|stp)_[A-Za-z0-9_-]+$
          description: >-
            Use as template_id when creating the flow: wtp_ for WhatsApp, etp_
            for email, and stp_ for SMS.
        channel:
          type: string
          enum:
            - whatsapp
            - whatsapp_unofficial
            - email
            - sms
        name:
          type: string
        status:
          type: string
          description: >-
            WhatsApp approval status: approved, pending, rejected, draft, or
            paused.
        preview:
          type: string
          description: Start of the template text.
        variables:
          type: array
          description: Template variables and the customer data each one renders.
          items:
            type: object
            required:
              - placeholder
              - source
            properties:
              placeholder:
                type: string
                example: '{{1}}'
              source:
                type: string
                example: first_name
    Error:
      type: object
      required:
        - type
        - message
        - request_id
      properties:
        type:
          type: string
          enum:
            - authentication_error
            - conflict
            - internal_error
            - invalid_request
            - not_found
            - permission_denied
            - rate_limited
            - validation_error
        message:
          type: string
        param:
          type: string
        request_id:
          type: string
          pattern: ^req_[a-f0-9]{24}$
  headers:
    RetryAfter:
      description: Seconds before retrying.
      schema:
        type: integer
        minimum: 1
    RateLimitLimit:
      description: Total limit for the current window.
      schema:
        type: integer
        example: 600
    RateLimitRemaining:
      description: Requests remaining in the current window.
      schema:
        type: integer
        example: 599
    RateLimitReset:
      description: UTC instant when the current window ends.
      schema:
        type: string
        format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: bvt_live_...
      description: API key created in the organization settings.

````

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