---
updatedAt: 2026-10-30T08:35:07.000Z
agentTools:
  projectIndex: https://docs.wati.io/llms.txt
---

# Send a WhatsApp template message

Compatibility reference for existing integrations. New integrations should use `/api/ext/v3/messageTemplates/send` for both single and multiple recipients.

This retained single-send query route accepts `whatsappNumber` or a supported `target`; a non-whitespace target takes precedence. Business-scoped identity targets depend on account support. Supply the required `broadcast_name`, select the approved WATI template with `template_name`, and supply its named parameter values in the body's `parameters` array as `{name,value}` entries. Use the names from the actual WATI template mapping; array position alone is not the binding contract. Use optional `channel_number` only as supported by this legacy operation.

Inspect the HTTP response and the legacy business result separately. Acceptance does not establish delivery. Retain correlation and message/campaign identifiers, and reconcile uncertain outcomes before resending. Neither a repeated request label nor a caller correlation ID is a general request-level idempotency guarantee.

The similarly named `sendTemplateMessage/{whatsappNumber}` action has different role support; do not assume scoped tokens work with both routes. See the [template payload and V1 migration guide](https://docs.wati.io/reference/template-message-payload-guide) and [token lifecycle guide](https://docs.wati.io/reference/authentication).

### Permissions

For API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `wati_integration:write`, `messagetemplate:write`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "WATI API",
    "version": "2.6",
    "description": "Documentation contract version 2.6. Use V3 for supported business operations, adopting its request, response, defaults and pagination. Retain V1/V2 only for the business exceptions listed in Introduction. API route versions are independent of this artifact version.\n\nSend Authorization: Bearer <your-token> with the workspace credential and regional API host. API route version does not select the authentication mechanism. Endpoint scopes, roles, account availability and channel access still apply; consult Authentication and each operation.\n\nChannel support is operation-specific. GET /api/ext/v3/channels lists additional connected channels and may exclude the default WhatsApp number; do not infer full channel coverage or permission to send from discovery alone.\n\nInspect HTTP status and business result separately. Some operations report business failure or partial recipient failure in HTTP 200. Authorization errors may have no JSON body. A 429 can indicate a rate or usage limit. For unknown write outcomes, reconcile state before retrying; do not assume idempotency.\n\nCreate webhook subscriptions through the documented V2 exception or the dashboard, then manage them through V3. Use supported event types for the workspace and distinguish request acceptance from final message delivery.",
    "contact": {
      "name": "WATI Support",
      "url": "https://docs.wati.io"
    }
  },
  "servers": [
    {
      "url": "https://live-mt-server.wati.io",
      "description": "WATI API host. Legacy v1 and v2 endpoints require tenantId in the path; v3 endpoints do not."
    }
  ],
  "tags": [
    {
      "name": "Messages (v1)",
      "description": "Send and retrieve WhatsApp messages via the v1 API."
    }
  ],
  "paths": {
    "/{tenantId}/api/v1/sendTemplateMessage": {
      "post": {
        "tags": [
          "Messages (v1)"
        ],
        "summary": "Send a WhatsApp template message",
        "description": "Compatibility reference for existing integrations. New integrations should use `/api/ext/v3/messageTemplates/send` for both single and multiple recipients.\n\nThis retained single-send query route accepts `whatsappNumber` or a supported `target`; a non-whitespace target takes precedence. Business-scoped identity targets depend on account support. Supply the required `broadcast_name`, select the approved WATI template with `template_name`, and supply its named parameter values in the body's `parameters` array as `{name,value}` entries. Use the names from the actual WATI template mapping; array position alone is not the binding contract. Use optional `channel_number` only as supported by this legacy operation.\n\nInspect the HTTP response and the legacy business result separately. Acceptance does not establish delivery. Retain correlation and message/campaign identifiers, and reconcile uncertain outcomes before resending. Neither a repeated request label nor a caller correlation ID is a general request-level idempotency guarantee.\n\nThe similarly named `sendTemplateMessage/{whatsappNumber}` action has different role support; do not assume scoped tokens work with both routes. See the [template payload and V1 migration guide](https://docs.wati.io/reference/template-message-payload-guide) and [token lifecycle guide](https://docs.wati.io/reference/authentication).\n\n### Permissions\n\nFor API access tokens and OIDC tokens, satisfy **at least one** of: `api`, `wati_integration:write`, `messagetemplate:write`. API access tokens may satisfy a listed scope through the configured scope hierarchy; OIDC tokens are checked against their scope claims. Legacy JWT authentication does not use this scope check. Authentication, role, tenant, and applicable feature or plan checks still apply. For HTTP 403, check the credential type, applicable scopes, roles, and workspace access; 403 does not always mean a missing scope. Authentication/authorization failures do not guarantee a JSON response body.",
        "operationId": "SendTemplateMessage",
        "parameters": [
          {
            "name": "whatsappNumber",
            "in": "query",
            "description": "Recipient's WhatsApp number in international format without the leading `+`\n(e.g., `85264318721` for +852 6431 8721). The number must be a valid WhatsApp user.\nOptional when `target` is provided.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "target",
            "in": "query",
            "description": "Polymorphic recipient identifier. Accepts a phone number, ContactId, or BSUID.\nWhen provided, takes precedence over `whatsappNumber`. BSUID resolution depends on availability for your workspace.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Your WATI workspace (tenant) ID. This required path segment identifies the WATI account for legacy v1 and v2 API requests."
          }
        ],
        "requestBody": {
          "description": "Approved WATI template selection and named parameter values: parameters contains name/value entries resolved through the template mapping. broadcast_name is required; channel_number is optional. Follow this legacy schema for channel routing; V3 uses recipients[].custom_params instead.",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/WASendTemplateRequestModel"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WASendTemplateRequestModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WASendTemplateRequestModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WASendTemplateRequestModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Message accepted by WATI for delivery. The response body contains the local message ID and contact reference; final delivery status is reported via webhooks.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SendTemplateMessageV1Response"
                },
                "example": {
                  "result": true,
                  "phone_number": "919876543210",
                  "target": "919876543210",
                  "template_name": "welcome_template",
                  "parameteres": [
                    {
                      "name": "1",
                      "value": "John"
                    }
                  ],
                  "contact": null,
                  "model": null,
                  "validWhatsAppNumber": true,
                  "info": "Template message sent successfully",
                  "local_message_id": null
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendTemplateMessageV1Response"
                },
                "example": {
                  "result": true,
                  "phone_number": "919876543210",
                  "target": "919876543210",
                  "template_name": "welcome_template",
                  "parameteres": [
                    {
                      "name": "1",
                      "value": "John"
                    }
                  ],
                  "contact": null,
                  "model": null,
                  "validWhatsAppNumber": true,
                  "info": "Template message sent successfully",
                  "local_message_id": null
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SendTemplateMessageV1Response"
                },
                "example": {
                  "result": true,
                  "phone_number": "919876543210",
                  "target": "919876543210",
                  "template_name": "welcome_template",
                  "parameteres": [
                    {
                      "name": "1",
                      "value": "John"
                    }
                  ],
                  "contact": null,
                  "model": null,
                  "validWhatsAppNumber": true,
                  "info": "Template message sent successfully",
                  "local_message_id": null
                }
              }
            }
          },
          "400": {
            "description": "Request was rejected. Common causes: template name not found or not approved, missing/extra parameters, daily marketing-broadcast limit reached, tenant in offline mode, or invalid WhatsApp number."
          },
          "401": {
            "description": "Missing or invalid bearer token."
          },
          "403": {
            "description": "The authenticated request is forbidden. Authorization failed. Check the Permissions section for the credential-specific scope rules, and check roles and workspace access. The response may have no body; do not require a JSON error envelope."
          }
        },
        "x-wati-permissions": {
          "scopeRequirementGroups": [
            {
              "anyOf": [
                "api",
                "wati_integration:write",
                "messagetemplate:write"
              ]
            }
          ],
          "groupOperator": "allOf",
          "appliesTo": [
            "ApiAccessToken",
            "OIDC"
          ],
          "legacyJwtScopeCheck": "skipped",
          "apiAccessTokenHierarchy": "configured-by-identity-provider",
          "oidcFallbackWhenNoEndpointScope": null,
          "sourceCommit": "03c6d4bc1590408c569e65602f969c6a596672e3"
        },
        "x-wati-documentation": {
          "discovery": "compatibility-link-only",
          "recommendedPath": "/api/ext/v3/messageTemplates/send",
          "reason": "Use the V3 recipients batch for both single and multiple recipients."
        },
        "x-internal": true
      }
    }
  },
  "components": {
    "schemas": {
      "ParametersModel": {
        "type": "object",
        "required": [
          "name",
          "value"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "value": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false
      },
      "SendTemplateMessageV1Response": {
        "type": "object",
        "properties": {
          "result": {
            "type": "boolean"
          },
          "phone_number": {
            "type": "string",
            "nullable": true
          },
          "target": {
            "type": "string",
            "nullable": true
          },
          "template_name": {
            "type": "string",
            "nullable": true
          },
          "parameteres": {
            "description": "Template parameter values. Field name preserves legacy spelling.",
            "nullable": true
          },
          "contact": {
            "nullable": true
          },
          "model": {
            "nullable": true
          },
          "validWhatsAppNumber": {
            "nullable": true
          },
          "info": {
            "type": "string",
            "nullable": true
          },
          "local_message_id": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Response for POST /api/v1/sendTemplateMessage.\nReturns template send result with contact details and message tracking info."
      },
      "WASendTemplateRequestModel": {
        "type": "object",
        "required": [
          "broadcast_name",
          "template_name"
        ],
        "properties": {
          "parameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ParametersModel"
            },
            "nullable": true,
            "description": "Named WATI template values. Omitted, null or an empty list is valid only when the selected template has no mapped parameters; otherwise provide every required name with its non-empty value."
          },
          "template_name": {
            "type": "string",
            "minLength": 1
          },
          "broadcast_name": {
            "type": "string",
            "minLength": 1
          },
          "channel_number": {
            "type": "string",
            "nullable": true,
            "description": "Optional sending-channel number. Omitted, null or an empty string uses the default workspace channel context. A supplied non-empty value must identify a supported account channel."
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "API token from your WATI Dashboard > API Settings. Pass as `Authorization: Bearer <token>`."
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ]
}
```