Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 950 Bytes

File metadata and controls

34 lines (24 loc) · 950 Bytes

createBroadcast

Create a broadcast draft. from is required; set audience to { type: "all" } or { type: "list", id: "lst_…" }. Returns the broadcast with its id (bct_…). Send it with sendBroadcast.

HTTP: POST /api/broadcasts

Parameters

Field Type Required Description
name string
from string
replyTo string
subject string
preview string
audience object
templateId string
html string
text string
footerAddress string

Returns

any

Example

Object res = mk.createBroadcast(Map.of("from", "news@app.mailkite.dev", "subject", "Launch week", "audience", [object Object], "html", "<h1>We shipped</h1>"));

← All methods · Docs · mailkite.dev