---
title: "iChatUp API: Send a WhatsApp Template Message"
url: https://ichatup.my/docs/messages
description: "Send one approved WhatsApp template to one person with POST /api/v1/messages, fill its blanks, then check delivery with GET /api/v1/messages/{id}."
source: iChatUp
---

Developers

# Send a template message

POST /api/v1/messages sends one approved WhatsApp template to one phone number through the account’s official WhatsApp connection. You name the template, give values for its blanks, and iChatUp answers 202 with a message id once WhatsApp accepts it. GET /api/v1/messages/{id} later reports whether it was delivered, read or failed, with the reason.

## At a glance

|  |  |
| --- | --- |
| Send | POST /api/v1/messages |
| Check | GET /api/v1/messages/{id} |
| Required | phone, template |
| Optional | language, variables, media\_url, link |
| Plan | Update templates on every plan; promotional templates need Marketer or the trial |

## Sending

```
curl -X POST https://ichatup.com/api/v1/messages \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"phone": "+919876543210", "template": "order_confirmed", "variables": ["Asha", "A-1042"]}'
```

```
HTTP/1.1 202 Accepted
{"id": 98231, "status": "accepted", "to": "+919876543210"}
```

`variables` is either a list in the order of the blanks or an object keyed by blank, such as `{"1": "Asha", "2": "A-1042"}`. Every blank needs a value. A template whose header is an image, video or document also needs `media_url` on https. `link` fills a website button. `language` picks between translations of the same template.

## Checking delivery

```
curl https://ichatup.com/api/v1/messages/98231 \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```
{
  "id": 98231,
  "to": "+919876543210",
  "status": "delivered",
  "reason": null,
  "sent_at": "2026-11-22T09:15:02+00:00"
}
```

`status` moves from `accepted` to `delivered`, `read` or `failed`. Only messages sent through the API can be looked up here.

## Why a send is refused

- 409: no official WhatsApp connection on the account.
- 422: unknown or unapproved template, a missing blank, missing `media_url` , or WhatsApp refused it; the `error` field says which.
- 403: a promotional (marketing) template on a plan without broadcasts.

Promotions to a person who replied STOP are refused, as in a broadcast; order and booking updates still go through. Template wording ideas are in [the template library](https://ichatup.my/templates).

## Questions

**Can I send free-form text instead of a template?**

Not through this endpoint. It sends approved templates only. Front Desk moments can go as plain text inside the 24-hour window.

**How do I know a template’s blanks?**

Call GET /api/v1/templates. Each approved template lists its variables, header type and buttons.

## Read next

- [List templates and check the account](https://ichatup.my/docs/templates-and-account)
- [Idempotency](https://ichatup.my/docs/idempotency)
- [WhatsApp template library](https://ichatup.my/templates)
- [Add or update a contact](https://ichatup.my/docs/contacts)
- [Send a Front Desk moment](https://ichatup.my/docs/front-desk-moments)

---
Source: https://ichatup.my/docs/messages
