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

# Send WhatsApp Smart Template (Unstructured Data, Single Recipient)

> Send a WhatsApp smart template by templateId. Provide unstructured data in JSON or multipart form-data; AI maps it to template variables. Important: include the end user's phone number or a resolvable contact identifier in the payload so the AI knows the recipient. Supports optional integrationData payload. Requires x-api-key as query param. Optional stage and from-phone-number queries.



## OpenAPI

````yaml post /api/public/whatsapp/message/send/template/{templateId}
openapi: 3.0.0
info:
  title: Vambe AI API
  description: Vambe AI documentation
  version: '1.0'
  contact: {}
servers:
  - url: https://api.vambe.me
    description: Production Server
security: []
tags:
  - name: Vambe AI
    description: ''
paths:
  /api/public/whatsapp/message/send/template/{templateId}:
    post:
      tags:
        - WhatsApp Message
      summary: Send a template message with unstructured data
      description: >-
        Send a specific template message to a given phone number. Don't worry
        about the structure, if the data is in the body AI will take care of it
      operationId: PublicWhatsAppMessageController_sendSmartTemplate
      parameters:
        - name: templateId
          required: true
          in: path
          description: The template ID of the message to be sent
          schema:
            type: string
        - name: x-api-key
          required: true
          in: query
          description: API key needed to authorize the request
          schema:
            type: string
        - name: stage
          required: false
          in: query
          description: The stage id to send the message to
          schema:
            type: string
        - name: from-phone-number
          required: true
          in: query
          schema:
            type: string
      requestBody:
        required: true
        description: >-
          The payload to send with the template message. Can be JSON or form
          data. To add integration data use the key `integrationData` and the
          value should be a JSON object with the following structure: {
          "integrationContactId": "value", "integrationDealId": "value",
          "additionalData": { "key": "value" } }
        content:
          application/json:
            schema:
              oneOf:
                - type: object
                  example:
                    key: value
                - type: string
                  format: binary
          multipart/form-data:
            schema:
              oneOf:
                - type: object
                  example:
                    key: value
                - type: string
                  format: binary
      responses:
        '201':
          description: Message sent successfully.
        '400':
          description: Bad request.
        '401':
          description: Unauthorized.

````