---
title: "Send Template Message"
method: POST
path: "/api:hFrjh8a1/send_template_message_by_api"
tags: ["Templates"]
---

# Send Template Message

`POST /api:hFrjh8a1/send_template_message_by_api`

Send a template-based message to users via their phone numbers

## Request body

- TemplateMessageRequest
  - `template` string, uuid, required — The unique template ID used for sending the message
  - `variables` object, required — A JSON object containing dynamic placeholders for the message template. The keys should match the variables in your template. Common variable keys include: - body1, body2, body3: Text variables for message content - media: URL for image, video, or document attachments - visit_website: URL's parameter for the dynamic button link
  - `phone_number` string, required — The recipient's phone number in international format (e.g., +123476529999)

## Response `200`

Message sent successfully

- TemplateMessageResponse
  - `success` boolean — Indicates if the message was sent successfully
  - `whatsapp_response_info` object
    - `contacts` object[]
      - `input` string — The input phone number
      - `wa_id` string — The WhatsApp ID
    - `messages` object[]
      - `id` string — The WhatsApp message ID
      - `message_status` string — The status of the message
    - `messaging_product` string — The messaging product (e.g., whatsapp)

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.dev/whatsable/apis/notifyer-system-api.md) · [All operations](https://skmtc.dev/whatsable/apis/notifyer-system-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/whatsable/notifyer-system-api/revisions/e8c73eb27a0f/schema)
