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.
Sepintas lalu
| 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; theerrorfield 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.
Soalan lazim
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.
Cuba pada nombor anda sendiri
Dua minit untuk sambung, 7 hari percuma, tanpa kad. Pekerja AI anda menjawab, membuat tempahan dan membuat susulan di nombor WhatsApp yang sudah digunakan pelanggan anda.