Example repo: github.com/gokapso/whatsapp-broadcasts-example
Complete workflow
Step 1: Create broadcast
- WhatsApp config must be production type
- Template must be approved and linked to the config
Step 2: Add recipients
Add up to 1,000 recipients per request. Repeat for batches over 1,000.Positional parameters
For templates with{{1}}
, {{2}}
placeholders:
Named parameters
For templates with{{customer_name}}
, {{discount_code}}
placeholders:
Media headers
For templates with image/video/document headers:Response format
Step 3: Send broadcast
Trigger async send job:Step 4: Track progress
Response metrics
Status transitions
draft
→sending
→completed
orfailed
- Poll every 5-10 seconds during send
- Check
completed_at
for completion