Send campaign
Send a draft campaign now.
POST https://cotlet.dev/api/v1/mailjet/campaigns/{campaign_id}
write Confirm
Does what Send now on the Review & Send page does. The campaign goes to its list or segment at once and cannot be recalled. On the Free plan a campaign made in the Email Editor reaches at most 200 addresses, and an account over 1,000 stored contacts is on a sending hold, which removes Send now. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| campaign_id integer required | integer | Campaign ID from list_campaigns. |
Request
curl -X POST https://cotlet.dev/api/v1/mailjet/campaigns/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("mailjet", "send_campaign", {"campaign_id":1}) const result = await cotlet.call('mailjet', 'send_campaign', {"campaign_id":1}); cotlet call mailjet send_campaign --data '{"campaign_id":1}' Example response
{
"campaign_id": 7182934615,
"name": "Autumn offer, last chance",
"status": "sending",
"recipients": 1121
}