Skip to main content
POST templates/:channelId
This endpoint forwards your template payload directly to Meta’s official WhatsApp Template API.
Your request body must follow Meta’s structure and validation rules.

Path Parameters
ParameterTypeRequiredDescription
channelIdstringYesWhatsApp channel ID returned by the /channels endpoint.
curl -X POST "https://api.visitoai.com/api/v1.0/templates/123123123123123" \
  -H "Authorization: Bearer YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "sample_template",
    "category": "utility",
    "language": "en_US",
    "components": [
      {
        "type": "BODY",
        "text": "Hello {{1}}, your order has been confirmed."
      }
    ]
  }'