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

Parameters: send_campaign
NameTypeDescription
campaign_id integer required integer Campaign ID from list_campaigns.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/mailjet/campaigns/1 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("mailjet", "send_campaign", {"campaign_id":1})
Node.js
const result = await cotlet.call('mailjet', 'send_campaign', {"campaign_id":1});
CLI
cotlet call mailjet send_campaign --data '{"campaign_id":1}'

Example response

JSON

{
  "campaign_id": 7182934615,
  "name": "Autumn offer, last chance",
  "status": "sending",
  "recipients": 1121
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.