---
title: "template_send - Whatsapp"
method: POST
path: "/streams/event_send"
tags: ["Streams Service"]
---

# template_send - Whatsapp

`POST /streams/event_send`

Trigger a preconfigured event template for one or more recipients. Identify the template with `event` and pass each recipient's values in `template_variables`.

**Modes** — pick one:
- **Batch:** set top-level `sender` and `event`; omit them on each recipient.
- **Mixed:** omit the top-level values and set `sender` and `event` on **every** recipient.

Returns a batch `task_id` plus per-message identifiers; partial failures are reported inline.

**Authentication:** stream token in the `Authorization` header (see **Authentication** in the API Overview).

## Request body

- object
  - `sender` string — Top-level sender (**batch mode**).
  - `event` string — Top-level event/template name (**batch mode**).
  - `recipients` object[], required — Recipients to send to.
    - `internal_id` string — Your identifier for this recipient, echoed back.
    - `sender` string — Per-recipient sender (**mixed mode**). Required per recipient when no top-level `sender` is set.
    - `recipient_phone` string, required — Recipient phone number in international format, digits only.
    - `template_variables` object — Values substituted into the template placeholders for this recipient.
    - `event` string — Per-recipient event/template name (**mixed mode**).

## Response `200`

The batch was accepted for delivery.

- object
  - `status` boolean — `true` when the batch was accepted. Individual messages may still carry an `error`.
  - `task_id` string — Identifier for the accepted batch (processed asynchronously).
  - `messages` object[] — One entry per submitted message, in request order.
    - `internal_id` string — The `internal_id` you supplied, echoed back.
    - `message_uuid` string — Platform-assigned unique identifier for the message.
    - `conversation_uuid` string — The conversation this message belongs to.
    - `error` string — Present only when this message failed: the hex error code (e.g. `0x31`). See Error handling in the Overview.
    - `details` string — Human-readable detail for a failed message.

---

[API](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1.md) · [All operations](https://skmtc.net/commpeak/apis/dialer-api-v2-0-1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/commpeak/dialer-api-v2-0-1/versions/eacecf960bb6/schema)
