Methods
Create
CreateWithContext
Request
string
required
The ID of the segment to send the broadcast to.
string
required
The sender email address.
string
required
The email subject line.
string
A name to identify the broadcast.
string
The HTML content of the email.
string
The plain text content of the email.
string[]
An array of email addresses to set as reply-to addresses.
boolean
Set to
true to send the broadcast immediately upon creation instead of creating a draft.string
Schedule the email to be sent later. Accepts natural language (e.g., “in 1 min”) or ISO 8601 format (e.g., “2024-08-05T11:52:01.858Z”). Only valid when
send is true.string
deprecated
Deprecated. Use
segment_id instead.Response
string
The unique identifier for the created broadcast.
Example
Example: Create and send immediately
Example: Create and schedule
At least one of
html or text must be provided. Both segment_id (or deprecated audience_id) and from are required fields.