Newsletters
Broadcasts
Write, preview and test a broadcast, send it to a segment or in several languages, and schedule, pause or cancel it.
On this page
A broadcast sends one newsletter to the confirmed contacts of an audience. Create, test and send broadcasts under Broadcasts in the dashboard. This page also names the API fields for each option, and the Broadcasts API has every request.
Compose, preview and test a broadcast
A broadcast combines an audience, a From address on your newsletter domain, a saved template, and shared values. Template fields such as {{contact.first_name}} come from contact attributes. Preview renders the email for any contact in the audience. A test copy goes only to a verified member of your workspace, its subject starts with [Test], and its unsubscribe link changes nothing.
Every copy ends with your sender name, postal address and an unsubscribe link, and carries List-Unsubscribe and List-Unsubscribe-Post headers for one-click unsubscribe in mail apps. Do not set these headers yourself.
Target a segment
A broadcast goes to every confirmed contact in its audience unless you give it a segment. A segment narrows those contacts by their attributes. It never adds pending or unsubscribed contacts. Set match to all when every condition must hold, or to any when one is enough, and give 1 to 20 conditions.
{
"match": "all",
"conditions": [
{ "attribute": "plan", "operator": "in", "values": ["pro", "team"] },
{ "attribute": "signup_date", "operator": "after", "value": "2026-01-01" },
{ "attribute": "country", "operator": "not_equals", "value": "US" }
]
}| Operator | Value | Matches when the attribute |
|---|---|---|
equals, not_equals | value, text | is or is not exactly that text |
contains, not_contains | value, text | contains or does not contain the text, ignoring case |
starts_with | value, text | starts with the text, ignoring case |
in, not_in | values, 1 to 100 texts | is or is not exactly one of the texts |
exists, not_exists | none | is set or is not set |
greater_than, greater_or_equal, less_than, less_or_equal | value, number | is a plain number such as -12.5 that compares as named |
before, after | value, a YYYY-MM-DD date | starts with a YYYY-MM-DD date earlier or later than the value |
The negative operators not_equals, not_contains, not_in and not_exists also match contacts that do not have the attribute. The other operators never match a missing attribute, and the number and date operators skip values in any other form.
Preview estimates how many contacts the segment matches now. The recipients are fixed from the segment when sending starts.
Send in several languages
A contact can have a locale, a BCP 47 language tag such as en, sk or en-GB. Set it with POST /v1/contacts, with a subscription request, or with the locale column of an import. Ternwire stores the language in lowercase and the region in uppercase, so sk_sk becomes sk-SK. On an upsert, omitting locale keeps the stored value and null clears it. A subscription request for an existing contact leaves its locale unchanged. An audience can set a defaultLocale for contacts without one.
Give a broadcast localizedTemplates, a map from locale to template ID, next to its templateId. Each recipient gets the first template that matches, in this order:
- The contact's exact locale, such as
de-AT. - The language of that locale, such as
de. - The audience
defaultLocale, then its language. - The broadcast's
templateId.
{
"templateId": "template_news_en",
"localizedTemplates": { "sk": "template_news_sk", "de": "template_news_de" }
}Every template in the map must exist when you save the draft. Updating localizedTemplates replaces the whole map, and {} clears it. Preview uses the sample contact's locale, or the locale you pass, and returns the locale of the template it chose, or null for templateId. A test copy takes a locale the same way. The templates and the audience default are fixed with the rest of the content when sending starts.
The footer, the confirmation email and the unsubscribe and confirmation pages are written in English and Slovak. They follow the contact's locale, then the audience default, and use English for other languages. A page opened from an invalid link uses the browser's preferred language.
Send, schedule, pause and cancel
POST /v1/broadcasts/:broadcastId/send starts at once. Pass scheduledAt with an explicit time zone offset, such as 2026-10-20T09:00:00+02:00, to schedule up to 30 days ahead. A time more than a minute in the past returns schedule_out_of_range and nothing is sent, so a wrong date never starts the broadcast at once. The content is fixed when you schedule or send, so later template edits do not change it. Unschedule to return it to a draft and edit it. Repeating the send with the same Idempotency-Key and body returns the broadcast unchanged. Any other send of a broadcast that is no longer a draft, including one with a new key, returns idempotency_conflict. Check its state with GET /v1/broadcasts/:broadcastId before you retry.
Recipients are the confirmed contacts at the moment sending starts, up to your plan's limit. An audience over the limit is refused with audience_too_large and the limit when you send, and fails the same way if it outgrows the limit before a scheduled send starts. preview_broadcast and the preview endpoint return the current limit as recipientLimit.
A workspace has one scheduled, testing, sending or paused broadcast at a time. Another one is refused with broadcast_active until the first finishes or you cancel it.
Pause and resume at any point before the broadcast finishes. Cancel stops copies that have not started. Copies already handed to the email provider cannot be recalled.
The broadcast page counts copies handed to the provider separately from delivered ones. Handed to provider means the provider accepted the copy. Delivered means it reported delivery to the recipient. Read delivery states for the difference.
Test variants
An A/B test sends two to four variants to a test group, waits, then sends the variant with the best rate to everyone else. Add abTest to the broadcast draft:
{
"templateId": "template_news",
"abTest": {
"variants": [
{ "name": "Control" },
{ "name": "Bold", "templateId": "template_news_bold" }
],
"testPercent": 20,
"winnerMetric": "clicks",
"waitMinutes": 240
}
}A variant without templateId sends the broadcast's own templateId and localizedTemplates, so it can be the control. A variant with templateId can also have its own localizedTemplates. Each copy takes its variant first, then the template for the contact's locale within that variant. The template owns the subject, so test a subject line with a second template. Variant names are unique without regard to case.
testPercentis 10 to 50, 20 by default. The test group is that share of the recipients the broadcast can send, which is the confirmed contacts up tomaxRecipients. It always has at least one copy per variant, and the variants share it evenly.waitMinutesis 30 minutes to 72 hours, 4 hours by default. The wait starts once every test copy has been handed to the provider or skipped.winnerMetricisclicksby default, oropens. Opens are inflated by privacy proxies that load every image, so prefer clicks.
The winner has the highest share of unique clicks or opens among its test copies handed to the provider. Equal rates go to the variant listed first. Sending fails with ab_test_tracking_required when tracking for the winner metric is off.
While the test group is out, the broadcast is testing. GET /v1/broadcasts/:broadcastId/ab-test returns each variant's copies, unique opens and clicks and rates, the time the winner will be chosen, the winner and the remainder. Each recipient in GET /v1/broadcasts/:broadcastId/recipients has its variant and phase. A remainder recipient has variant: null until the winner is chosen.
POST /v1/broadcasts/:broadcastId/ab-test/winner ends the wait. Pass { "variant": "Bold" } to send that variant to the rest, or {} to apply the winner metric to the results so far. Either way the remainder starts sending. Pause holds the test, and a paused test chooses no winner until you resume it. Cancel skips the remainder. The variants are fixed with the rest of the content when sending starts.