Skip to main content
POST /templates/:channelId/send
This endpoint forwards your payload directly to Meta’s WhatsApp Cloud API, so your template structure must follow Meta’s official format.
Path Parameter
ParameterTypeRequiredDescription
channelIdstringYesWhatsApp channel ID from /channels.
Example Request (cURL)
curl -X POST "https://api.visitoai.com/api/v1.0/templates/1192149098990409/send" \
  -H "Authorization: Bearer YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "35123453534",
    "template": {
      "name": "sample_template",
      "language": {
        "code": "en"
      }
    }
  }'
Example Response
{
  "data": {
    "status": "sent",
    "id": "wamid.SAMPLE_MESSAGE_ID"
  }
}