A broadcast (broadcast) sends the same message, personalized, to all the contacts of a segment. full_access key.
Creating and sending
Node / Bun
const { data: b } = await voaaro.broadcasts.create({
segmentId,
from: "Acme <news@notify.example.com>",
subject: "November news",
html: '<p>Hello {{{contact.first_name|there}}}!</p><p><a href="{{{unsubscribe_url}}}">Unsubscribe</a></p>',
})
await voaaro.broadcasts.send(b.id, { scheduledAt: "in 1 hour" })Python
b = voaaro.Broadcasts.create({
"segment_id": segment_id,
"from": "Acme <news@notify.example.com>",
"subject": "November news",
"html": "<p>Hello {{{contact.first_name|there}}}!</p>",
})
voaaro.Broadcasts.send(b["id"], {"scheduled_at": "in 1 hour"})PHP
$campagne = $voaaro->broadcasts->create([
'segmentId' => $segmentId,
'from' => 'Acme <news@notify.example.com>',
'subject' => 'November news',
'html' => '<p>Hello {{{contact.first_name|there}}}!</p>',
]);
$voaaro->broadcasts->send($campagne->id, ['scheduledAt' => 'in 1 hour']);Go
b, err := client.Broadcasts.Create(&voaaro.CreateBroadcastRequest{
SegmentId: segmentId,
From: "Acme <news@notify.example.com>",
Subject: "November news",
Html: `<p>Hello {{{contact.first_name|there}}}!</p>`,
})
client.Broadcasts.Send(b.Id, &voaaro.SendBroadcastRequest{ScheduledAt: "in 1 hour"})cURL
curl https://mail.example.com/api/v1/broadcasts \
-H "Authorization: Bearer $VOAARO_API_KEY" -H "Content-Type: application/json" \
-d '{"segment_id": "…", "from": "Acme <news@notify.example.com>", "subject": "News", "html": "<p>Hello</p>", "send": true}'A broadcast starts as a draft; send: true at creation, or POST /api/v1/broadcasts/{id}/send afterwards, sends it (right away, or at scheduled_at, at most 30 days ahead). It needs a segment, a sender, a subject and content.
To schedule at a local time with a time zone, reschedule, unschedule, send right away (send-now) or list upcoming broadcasts, see Scheduling a broadcast. Before sending, GET /api/v1/broadcasts/{id}/check checks the content (score and factors: subject, unsubscribe link, text version, links…), without blocking anything.
Optional fields: name (internal name), topic_id (only the subscribers to this topic), text (derived from the HTML if missing), reply_to, preview_text (preheader, inserted hidden at the top of the HTML: the line inboxes show after the subject).
Variables
{{contact.first_name}}, {{contact.last_name}}, {{contact.email}}, {{contact.<property>}} (fallback: the property's default value), and the Resend forms {{{FIRST_NAME}}}, {{{LAST_NAME}}}, {{{EMAIL}}}. A fallback is written after |: {{{contact.first_name|there}}}. Values are always escaped (no HTML injection by a contact).
Unsubscribe
- Unsubscribe link:
{{{unsubscribe_url}}}(or{{{RESEND_UNSUBSCRIBE_URL}}},{{{VOAARO_UNSUBSCRIBE_URL}}}). Without a link in the message, Voaaro adds a translated footer. - Link token:
{{{VOAARO_UNSUBSCRIBE_TOKEN}}}(or{{ unsubscribe_token }}), for a link to your own page: unsubscribing from your application. The hosted page can be customized: default preferences page. - Each message carries
List-UnsubscribeandList-Unsubscribe-Post: List-Unsubscribe=One-Click(RFC 8058): Gmail and the others show their "Unsubscribe" button, which works without opening a page. - A broadcast linked to a topic unsubscribes from the topic; otherwise, from all broadcasts.
Warm-up
To protect the reputation of a new domain, the broadcasts of a sending domain are capped over a rolling 24 hours: 50 messages on the day it is verified, then double each day (100, 200, 400…), with no cap from the 14th day. Messages above the cap wait their turn; nothing is lost. Transactional emails are not affected.
Tracking
GET /api/v1/broadcasts/{id}:status(draft,scheduled,queued,sent,canceled) andstats(recipients,sent,delivered,opened,clicked,bounced,complained,unsubscribed,suppressed,failed,pending…). Opens and clicks arenullwithout tracking enabled on the key.GET /api/v1/broadcasts/{id}/recipients?type=clicked: who received, opened, clicked, bounced, unsubscribed…GET /api/v1/broadcastslists the broadcasts;statusfilter (filters).GET /api/v1/broadcasts/{id}/deliverability: deliverability score before sending,{ object: "deliverability_check", score, grade, domain, errors, warnings, checks }. Each check:id,category(authentication,unsubscribe,content,audience,reputation),level(ok,info,warning,error),message,advice(advice, absent when the check passes) anddata(figures). Mark: 100, minus 6 per warning and 15 per error; A from 90, B from 75, C from 60, D from 40, E below. The score does not block sending;GET …/checkremains the content-only check.- Clicks per link, results per domain, timeline, CSV export: detailed statistics; trying two subjects: A/B testing; starting from a template:
template_id. - The messages of a broadcast also go through the usual webhooks, with the
broadcast_idtag; the broadcast itself producesbroadcast.started,broadcast.sentandbroadcast.canceled.
Node / Bun
const { data: d } = await voaaro.broadcasts.deliverability(broadcastId)
for (const c of d!.checks) if (c.level !== "ok") console.log(c.category, c.id, c.advice)Python
d = voaaro.Broadcasts.deliverability(broadcast_id)
for c in d["checks"]:
if c["level"] != "ok":
print(c["category"], c["id"], c["advice"])PHP
$d = $voaaro->broadcasts->deliverability($broadcastId);
foreach ($d->checks as $c) {
if ($c->level !== 'ok') {
echo $c->category, ' ', $c->id, ' ', $c->advice, "\n";
}
}Go
d, _ := client.Broadcasts.Deliverability(broadcastId)
for _, c := range d.Checks {
if c.Level != voaaro.CheckOk {
fmt.Println(c.Category, c.Id, *c.Advice)
}
}cURL
curl https://mail.example.com/api/v1/broadcasts/$BROADCAST_ID/deliverability \
-H "Authorization: Bearer $VOAARO_API_KEY"Canceling, duplicating
POST …/cancel (or DELETE …/schedule, scheduling): a scheduled broadcast goes back to draft; a broadcast in progress stops (the messages not yet sent are canceled). POST …/duplicate creates a new draft. PATCH and DELETE only affect a draft or a scheduled broadcast.