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

Send Template Message

Sends a pre-approved WhatsApp template. Required for initiating conversations outside the 24-hour service window. Dynamic variables go in the components array.

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

Recommendation

Components are optional — omit entirely if your template has no placeholders.

Request Body Schema

application/json
template.namestringrequired

Template name (from Meta)

Example:hello_world
template.language.codestringrequired

Language locale (e.g. en_US)

template.componentsarrayoptional

Variable values for template placeholders

Response Payload

200 OKapplication/json
successbooleanrequired

Whether request succeeded

data.message_idstringrequired

Platform message ID

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 '{"template":{"name":"hello_world","language":{"code":"en_US"}}}'

Was this endpoint guide helpful?

Previous Endpoint
Send Document
Next Endpoint
Send Template (with Variables)
© 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 '{"template":{"name":"hello_world","language":{"code":"en_US"}}}'
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": "Message sent successfully"
21}