Skip to main content
Use 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 segmentKey, 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 templateKey to reuse an existing Segmentflow Email Template instead of inline content. segmentId and templateId remain available as advanced fallbacks. Reusable Email Templates stay unchanged when you create or edit a Broadcast draft from them. Segmentflow creates a Broadcast-specific Template Snapshot for the draft/send instance, so multiple Broadcasts can start from the same base Template without overwriting one another.
Use broadcasts.retrieve to poll a Broadcast status handle and broadcasts.stats to read aggregate delivery stats:
Set 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.