ChatofyDevelopers
REST APIMCP Server (AI)New
API KeysWebhooks
Chatofy API
/
Getting Started
API Resources
API v1.0 Live
Developer APIMessagesSend Template (Body Variables Only)

Send Template (Body Variables Only)

Sends a standard text-only WhatsApp template with multiple dynamic body variables (e.g. customer name {{1}}, payment amount {{2}}, due date {{3}}) without header images or buttons.

POST/api/v1/contact/{phone}/send-template-message

Recommendation

When a template has no header or buttons, pass only the body component array. Placeholders map 1:1 in positional order (parameter 0 -> {{1}}, parameter 1 -> {{2}}, parameter 2 -> {{3}}).

Body Parameters

1 parameter
{phone}stringrequired

Recipient phone number with country code (e.g. +919000000000).

Request Body Schema

application/json
template.namestringrequired

Template name (from Meta)

Example:payment_reminder_notice
template.language.codestringrequired

Language locale (e.g. en_US)

Example:en_US
template.componentsarray<object>required

Array containing body component object with positional parameter array for placeholders (no header or button components)

template.components[0].typestringrequired

Must be "body"

Example:body
template.components[0].parametersarray<object>required

Sequential text parameters mapping to {{1}}, {{2}}, {{3}} placeholders

template.components[0].parameters[].typestringrequired

Parameter type (always "text" for plain text placeholders)

Example:text
template.components[0].parameters[].textstringrequired

Text replacement value

Example:Sumit Singh

Response Payload

200 OKapplication/json
successbooleanrequired

Whether request succeeded

data.message_idstringrequired

Platform message ID (wamid)

data.raw.messages[].idstringrequired

Meta message ID

Code Snippets & Examples

1curl -X POST "https://app.chatofy.in/api/v1/contact/+919000000000/send-template-message" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "template": {
6 "name": "payment_reminder_notice",
7 "language": {
8 "code": "en_US"
9 },
10 "components": [
11 {
12 "type": "body",
13 "parameters": [
14 {
15 "type": "text",
16 "text": "Sumit Singh"
17 },
18 {
19 "type": "text",
20 "text": "₹4,999.00"
21 },
22 {
23 "type": "text",
24 "text": "October 5, 2026"
25 }
26 ]
27 }
28 ]
29 }
30}'

Was this endpoint guide helpful?

Previous Endpoint
Send Template (with Variables)
Next Endpoint
Get Conversations & Thread Memory
© 2026 Chatofy Cloud Platform. All rights reserved.
1curl -X POST "https://app.chatofy.in/api/v1/contact/+919000000000/send-template-message" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "template": {
6 "name": "payment_reminder_notice",
7 "language": {
8 "code": "en_US"
9 },
10 "components": [
11 {
12 "type": "body",
13 "parameters": [
14 {
15 "type": "text",
16 "text": "Sumit Singh"
17 },
18 {
19 "type": "text",
20 "text": "₹4,999.00"
21 },
22 {
23 "type": "text",
24 "text": "October 5, 2026"
25 }
26 ]
27 }
28 ]
29 }
30}'
200 OKapplication/json
1{
2 "success": true,
3 "data": {
4 "message_id": "wamid.HBgLMTIzNDU2...",
5 "raw": {
6 "messaging_product": "whatsapp",
7 "contacts": [
8 {
9 "input": "+919000000000",
10 "wa_id": "919000000000"
11 }
12 ],
13 "messages": [
14 {
15 "id": "wamid.HBgLMTIzNDU2..."
16 }
17 ]
18 }
19 },
20 "message": "Template message (body variables only) sent successfully"
21}