Raw schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Campaign name."
},
"subject": {
"type": "string",
"minLength": 1,
"description": "Subject line."
},
"sender_email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
"description": "Sender email โ must be one of the account's senders."
},
"reply_to_email": {
"description": "Reply-to email โ must be one of the account's senders. Default: sender_email.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"confirmation_to_email": {
"description": "Where to send the 'campaign sent' confirmation. Default: sender_email.",
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"html_content": {
"description": "Complete HTML body of the campaign.",
"type": "string"
},
"web_location": {
"description": "URL Moosend fetches the HTML from (CSS is inlined automatically).",
"type": "string",
"format": "uri"
},
"mailing_lists": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"mailing_list_id": {
"type": "string",
"minLength": 1,
"description": "Mailing list ID."
},
"segment_id": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "string",
"pattern": "^\\d+$"
}
],
"description": "Segment ID (an integer, from moosend_list_segments)."
}
},
"required": [
"mailing_list_id"
]
},
"description": "Target lists, each optionally narrowed to one segment."
},
"track_in_google_analytics": {
"description": "Enable Google Analytics tracking (requires GA on your site).",
"type": "boolean"
}
},
"required": [
"name",
"subject",
"sender_email",
"mailing_lists"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}