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

# Send a whatsapp template message



## OpenAPI

````yaml https://api.gleap.io/api-docs.json post /engagement/whatsapp-messages/send-template
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /engagement/whatsapp-messages/send-template:
    post:
      tags:
        - Engagement Whatsapp Messages
      summary: Send a whatsapp template message
      operationId: SendWhatsappTemplateMessage
      parameters:
        - in: header
          name: project
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              properties:
                customValues:
                  $ref: '#/components/schemas/Record_string.string_'
                  description: >-
                    Key-value map of template variable overrides. Keys must
                    match the templateVariable names from your variable mapping
                    (e.g. { "order_number": "ORD-123", "customer_name": "John"
                    })
                languageCode:
                  type: string
                  description: >-
                    Language code (e.g. "en_US"). Falls back to the contact's
                    language or "en_US"
                templateName:
                  type: string
                  description: Name of the WhatsApp template registered with Meta
                channelId:
                  type: string
                  description: The WhatsApp channel ID from your project
                to:
                  type: string
                  description: Recipient phone number (E.164 format, e.g. "+14155552671")
              required:
                - templateName
                - channelId
                - to
              type: object
            example:
              to: '+14155552671'
              channelId: 6620f1a2b3c4d5e6f7890123
              templateName: order_confirmation
              languageCode: en_US
              customValues:
                order_number: ORD-2026-4821
                delivery_date: March 15, 2026
                customer_name: John Doe
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema: {}
      security:
        - jwt: []
components:
  schemas:
    Record_string.string_:
      properties: {}
      type: object
      description: Construct a type with a set of properties K of type T
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````