Raw schema
{
"type": "object",
"properties": {
"to_email": {
"type": "string",
"maxLength": 128,
"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": "An email address (max 128 characters)."
},
"sender_email": {
"type": "string",
"maxLength": 128,
"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 address on a verified domain (must match the template's sender when template_id is used)."
},
"sender_name": {
"type": "string",
"maxLength": 128
},
"subject": {
"type": "string",
"maxLength": 256
},
"content_html": {
"description": "Email body (HTML). Not needed with template_id.",
"type": "string",
"maxLength": 1048576
},
"template_id": {
"description": "Stored template id from the Enginemailer portal.",
"type": "string",
"minLength": 1,
"maxLength": 100
},
"campaign_name": {
"description": "Label for reports.",
"type": "string",
"maxLength": 128
},
"substitution_tags": {
"description": "Merge tags. Values must not contain { } [ ].",
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"value": {
"type": "string",
"maxLength": 2000
}
},
"required": [
"key",
"value"
]
}
},
"cc": {
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"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": "An email address (max 128 characters)."
}
},
"bcc": {
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"maxLength": 128,
"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": "An email address (max 128 characters)."
}
},
"confirm": {
"type": "boolean",
"const": true,
"description": "Must be true: the user has approved sending this email now."
}
},
"required": [
"to_email",
"sender_email",
"confirm"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}