Skip to content

API

Scheduling a broadcast

Prepare a broadcast as a draft, check its content, schedule it at a date, after a delay or at a local time, reschedule it, unschedule it or send it right away, and list upcoming broadcasts.

A broadcast is prepared as a draft, then goes out at the chosen time. These routes require a full_access key for the domain, like the other broadcast routes; add ?domain= if the key covers several domains.

MethodPathBody / queryResponse
POST/api/v1/broadcasts/{id}/schedule{ scheduled_at, timezone? }broadcast, status: "scheduled"
DELETE/api/v1/broadcasts/{id}/schedulebroadcast, status: "draft"
POST/api/v1/broadcasts/{id}/send-nowbroadcast, status: "queued"
GET/api/v1/broadcasts/scheduledscheduled_after, scheduled_before, limitlist, nearest first
GET/api/v1/broadcasts/{id}/checkcontent check

Creating the draft

POST /api/v1/broadcasts without send creates a draft (Creating and sending):

cURL
curl https://mail.example.com/api/v1/broadcasts \
  -H "Authorization: Bearer $VOAARO_API_KEY" -H "Content-Type: application/json" \
  -d '{"segment_id": "…", "subject": "November news", "html": "<p>Hello {{{contact.first_name|there}}}!</p>"}'

Without from, the broadcast uses the sender from the settings.

Before scheduling

GET /api/v1/broadcasts/{id}/check reviews the content the way a spam filter would, without blocking or sending anything:

JSON
{
  "object": "content_check",
  "id": "b1c2…",
  "score": 80,
  "warnings": 2,
  "errors": 0,
  "checks": [
    { "id": "subject_caps", "level": "warning", "message": "Subject mostly in capitals" },
    { "id": "text_part", "level": "warning", "message": "HTML only: add a text version" },
    { "id": "unsubscribe_link", "level": "ok", "message": "…" }
  ]
}

level is ok, info (advice, no effect on the score), warning or error. score starts at 100: 10 points off per warning, 30 per error. The factors (id):

idWhat is checked
subject_lengthempty subject, or longer than 78 characters
subject_capssubject mostly in capitals
subject_punctuationseveral !, repeated currency symbols
preview_textmissing preview text
unsubscribe_linkunsubscribe link (added to the footer if missing)
postal_addresspostal address in the settings (sending is refused without it)
text_partHTML without a text version
image_ratiotoo little text for the images
link_shortenerslink shorteners (bit.ly…)
insecure_linkshttp:// links
html_sizeHTML over 102 KB (Gmail clips the message beyond)

Voaaro computes it itself, with no third-party service. The console shows it in the broadcast editor. Only the postal address and the domain prevent sending (errors).

Scheduling

Node / Bun

await voaaro.broadcasts.schedule(broadcastId, { scheduledAt: "2026-11-20T09:00", timezone: "Europe/Paris" })

Python

voaaro.Broadcasts.schedule(broadcast_id, {"scheduled_at": "2026-11-20T09:00", "timezone": "Europe/Paris"})

PHP

$voaaro->broadcasts->schedule($broadcastId, '2026-11-20T09:00', 'Europe/Paris');

Go

b, err := client.Broadcasts.Schedule(broadcastId, &voaaro.ScheduleBroadcastRequest{ScheduledAt: "2026-11-20T09:00", Timezone: "Europe/Paris"})

cURL

curl https://mail.example.com/api/v1/broadcasts/$BROADCAST_ID/schedule \
  -H "Authorization: Bearer $VOAARO_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: newsletter-november" \
  -d '{"scheduled_at": "2026-11-20T09:00", "timezone": "Europe/Paris"}'
JSON
{
  "object": "broadcast",
  "id": "b1c2…",
  "name": "November",
  "status": "scheduled",
  "scheduled_at": "2026-11-20T08:00:00Z",
  "timezone": "Europe/Paris",
  "started_at": null,
  "segment_id": "…",
  "subject": "November news",
  "domain": "example.com"
}

scheduled_at can be written three ways:

FormExampleRead as
ISO 8601 with offset2026-11-20T08:00:00Z, 2026-11-20T09:00:00+01:00that exact date
delayin 2 hours, in 30 minfrom now
local time, no offset2026-11-20T09:00 with "timezone": "Europe/Paris"9 am in Paris, daylight saving time included
  • The date must be in the future, 30 days at most. A past date responds 422: to go right away, use send-now.
  • timezone: a known IANA time zone (Europe/Paris, America/New_York, Indian/Antananarivo), 422 otherwise. It is kept with the broadcast for display; scheduled_at is always returned in UTC.
  • Idempotency-Key (idempotency): the same request replayed returns the first response.

Rescheduling

Calling schedule again on a scheduled broadcast changes its date; every check is run again.

Unscheduling

DELETE /api/v1/broadcasts/{id}/schedule turns the broadcast back into a draft (409 if it is not scheduled). It can then be edited with PATCH and scheduled again.

Sending right away

POST /api/v1/broadcasts/{id}/send-now sends a draft or a scheduled broadcast without waiting: status: "queued", started_at set. Idempotency-Key is accepted here too.

In the SDKs: schedule, unschedule, sendNow, listScheduled, check (Node, PHP); schedule, unschedule, send_now, list_scheduled, check (Python); Schedule, Unschedule, SendNow, ListScheduled, Check (Go).

Listing upcoming broadcasts

GET /api/v1/broadcasts/scheduled returns the scheduled broadcasts, nearest first: { object: "list", has_more, data: [{ id, name, status, scheduled_at, timezone, subject, from, segment_id, domain }] }.

  • scheduled_after, scheduled_before: ISO 8601 bounds (scheduled_after included, scheduled_before excluded).
  • limit: 1 to 100, 50 by default.
cURL
curl "https://mail.example.com/api/v1/broadcasts/scheduled?scheduled_before=2026-12-01T00:00:00Z" \
  -H "Authorization: Bearer $VOAARO_API_KEY"

Errors

Checked when scheduling, and again at departure:

StatusCause
422 postal_address : …postal address missing from the settings
403 invalid_accessdomain not verified, sending disabled, or no DMARC record
422 segment_id, from et subject, html ou textmissing segment, sender, subject or content
422 scheduled_atpast date (use send-now), more than 30 days, unreadable form
422 timezoneunknown time zone
409 conflictbroadcast already started, sent or canceled; DELETE …/schedule on a broadcast that is not scheduled

Error messages name the field (error format). When it starts, the broadcast produces the broadcast.started webhook.

Esc