curl --request POST \
--url https://webhook.cocoonmail.com/webhook/campaign \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from_number": "+910000000000",
"type": "template",
"content": {
"template_name": "welcome_template",
"template_language": "en"
},
"tags": [
"tag1",
"tag2"
],
"recipient": [
{
"whatsapp_number": "+910000000000",
"first_name": "John",
"email": "john@example.com"
},
{
"whatsapp_number": "+910000000001",
"name": "Jane",
"email": "jane@example.com"
}
],
"scheduled_at": "2026-04-30T12:00:00Z"
}
'