Skip to main content
POST

Authorizations

Authorization
string
header
required

Your Mailercloud API key (plain text, no Bearer prefix). Create keys in Settings → API.

Headers

Content-Type
string
default:application/json
required

Request body type

Body

application/json
name
string
required
Required string length: 1 - 150
sender
object
required
subject
string
required
Required string length: 1 - 65000
email_preheader
string
exclude_list_ids
string[]
exclude_segments
string[]
exclude_tag_ids
string[]
frequency_cap
string
html
string
is_publish
enum<string>

"1" publishes/schedules the campaign; "0" saves it as a draft.

Available options:
0,
1
list_ids
string[]
mailing_preference
boolean
pause_rules
object
permission_reminder
string
plain_text
string
reply_email
string
reply_id
string
report_spam
boolean
rules
object
scheduled_at
string

Schedule time in YYYY-MM-DD HH:MM:SS format. Omit to send according to is_publish.

segments
string[]
sender_id
string[]
tag_id
string
tag_ids
string[]
tag_name
string
track_opens
enum<string>

Per-campaign open tracking. 1 enables, 0 disables. true / false are also accepted.

Omit this field to leave tracking enabled - absent means enabled, so existing integrations are unaffected. A value other than 0/1/true/false (including an empty string) is ignored and tracking stays enabled.

When disabled, the open is still counted in the campaign totals but is not attributed to any contact - it does not appear in per-recipient reports, segments or automations.

Available options:
0,
1
track_clicks
enum<string>

Per-campaign click tracking. 1 enables, 0 disables. true / false are also accepted.

Omit this field to leave tracking enabled - absent means enabled, so existing integrations are unaffected. A value other than 0/1/true/false (including an empty string) is ignored and tracking stays enabled.

When disabled, links are still rewritten and the click is still counted in the campaign totals, but it is not attributed to any contact.

Available options:
0,
1

Response

{ "id": "a" }

id
string

ID of the created campaign.