broadcasts.create when your backend needs to create a one-time email campaign for a saved Segment.
The route is POST /api/v1/broadcasts. It accepts a Resend-style payload with segmentId, from, subject, and html/text. Segmentflow creates a saved Email Template from the inline content, creates a Broadcast linked to the Segment, and returns the Broadcast id.
You can also pass templateId to reuse an existing Segmentflow Email Template instead of inline content.
send: true to start the Broadcast immediately. To schedule it, combine send: true with scheduledAt.
topicId maps to Segmentflow’s Email SubscriptionGroup id and is required before a Broadcast can be sent.
