Use template messages for notifications, reminders, and official campaigns.

Request

cURL
curl -X POST "https://api.wazapin.id/v1/messages" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "channel_id": "wzp_abc123",
    "to": "6281234567890",
    "type": "template",
    "content": {
      "template": {
        "name": "util_1",
        "language": {
          "code": "en_US"
        },
        "components": [
          {
            "type": "body",
            "parameters": [
              {"type": "text", "text": "John"}
            ]
          }
        ]
      }
    }
  }'

Notes

  • type must be template.
  • content.template.name, content.template.language.code, and content.template.components are the core fields.
  • Use a template that already exists and is approved in your channel provider.
  • Official and unofficial channels are supported. On unofficial channels, template content can be rendered as fallback text.