Creates a new broadcast based on the provided parameters. By default, broadcasts are created as drafts. You can optionally send them immediately or schedule them for later.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/resend/resend-go/llms.txt
Use this file to discover all available pages before exploring further.
Methods
Create
CreateWithContext
Request
The ID of the segment to send the broadcast to.
The sender email address.
The email subject line.
A name to identify the broadcast.
The HTML content of the email.
The plain text content of the email.
An array of email addresses to set as reply-to addresses.
Set to
true to send the broadcast immediately upon creation instead of creating a draft.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.Deprecated. Use
segment_id instead.Response
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.