email but will support push, sms and others in the future.
The type of content that we’ll be including.Allowed values:
email, smsHide Properties
Hide Properties
Example:
contents_123Match pattern: contents_\d+The email subject line.
The v1 API ID of a
EmailAddress. Will be updated in future versions.The v1 API ID of a
EmailAddress. Will be updated in future versions.Currently not saved / used (but can be sent). Will be updated in the future.
Freeform, comma-separated list of email addresses to BCC.
ISO 639-1 language code.Example:
fr-FRA JSON object serialized as a string. Will be updated in the future.
The string that renders under/beside the subject line in email clients.
The HTML version of the email
body.Example (Email)
Copy
Ask AI
{
"type": "email",
"email": {
"id": "contents_123",
"subject": "Welcome to our newsletter",
"from": "email_address_123",
"to": "email_address_456",
"preheader_text": "Check out our latest updates",
"body": "<html><body><h1>Welcome!</h1></body></html>",
"locale": "en-US",
"options": {
"track_opens": true,
"track_clicks": true
}
}
}
Example (SMS)
Copy
Ask AI
{
"type": "sms",
"sms": {
"id": "contents_456",
"from": "phone_number_123",
"to": "phone_number_456",
"body": "Welcome to our service!"
}
}

