Broadcasts

Create a broadcast

A draft to a segment, or (`send`) one sent now or at `scheduled_at`.

POST
/broadcasts

A draft to a segment, or (send) one sent now or at scheduled_at.

Authorization

bearer
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
ab_test?|null
audience_id?|

Deprecated: the segment's former name (Resend's audiences).

from*string
html?|

With {{{contact.<key>|fallback}}}, {{{FIRST_NAME}}} and the unsubscribe URL {{{RESEND_UNSUBSCRIBE_URL}}}.

name?string|null
preview_text?|

The inbox preview, hidden at the top of the HTML.

reply_to?array<string>|null
scheduled_at?|

With send: ISO 8601, or in <n> <minutes|hours|days> (in 1 hour).

segment_id?|

The segment to send to.

send?|

Sends it at once (or at scheduled_at) after creating it.

send_at_local?|

An exx extension: a time of day (HH:MM) to send at in each contact's time zone (else the project's), over up to 26 hours; not with an A/B test.

subject*string
text?|

Absent: generated from the HTML; "": no text part.

topic_id?|

The topic it is for: contacts who opted out of it are not sent to, and its unsubscribe link leaves only that topic.

variants?array<>|

An exx extension: up to 3 more variants for an A/B test (with ab_test).

Response Body

Success

application/json
  1. response

The answer to a create or a send (Resend's).

id*string
Formatuuid
Example Request
curl -X POST 'https://api.exx.sh/broadcasts' \  -H 'Content-Type: application/json' \  -d '{  "from": "string",  "subject": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"}