Skip to main content
Currently only supports type email but will support push, sms and others in the future.
type
string
The type of content that we’ll be including.Allowed values: email, sms
email
object
sms
object

Example (Email)

{
  "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)

{
  "type": "sms",
  "sms": {
    "id": "contents_456",
    "from": "phone_number_123",
    "to": "phone_number_456",
    "body": "Welcome to our service!"
  }
}