ChatofyDevelopersv1.0
API KeysWebhooks
Chatofy API
/
Getting Started
API Resources
API v1.0 Live
99.99%
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

curl -X POST "https://app.chatofy.in/api/v1/contact/+917838343515/send-template-message" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"template":{"name":"hello_world","language":{"code":"en_US"}}}'

Was this endpoint guide helpful?

Previous Endpoint
Send Document
Next Endpoint
List Templates
© 2026 Chatofy Cloud Platform. All rights reserved.
Enterprise SLA•99.99% Guaranteed
curl -X POST "https://app.chatofy.in/api/v1/contact/+917838343515/send-template-message" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"template":{"name":"hello_world","language":{"code":"en_US"}}}'
200 OKapplication/json
{
  "success": true,
  "data": {
    "message_id": "wamid.HBgLMTIzNDU2...",
    "raw": {
      "messaging_product": "whatsapp",
      "contacts": [
        {
          "input": "+917838343515",
          "wa_id": "917838343515"
        }
      ],
      "messages": [
        {
          "id": "wamid.HBgLMTIzNDU2..."
        }
      ]
    }
  },
  "message": "Message sent successfully"
}