Text message JSON
- Example: { "messaging_product": "whatsapp", "to": "<PHONE>", "type": "text", "text": { "body": "Hello {{name}}" } }
- Include personalization server-side before sending.
Sample JSON payloads for sending WhatsApp Business API messages.
Do I need to upload media first?
Yes. Upload media to get a media ID, then reference it in the message payload.
Can I send raw JSON from cURL?
Yes. Ensure headers include Authorization and Content-Type: application/json.
How do I test safely?
Use test numbers/whitelisted recipients and small controlled sends before production.
Try BotMax AI
Launch WhatsApp automation with compliant messaging
Verified templates, inbox for teams, broadcasts, reminders, and billing workflows.