Create broadcast

Creates a draft broadcast. Pass send: true to send it right away (or at scheduled_at).

POST/broadcasts

Body parameters

  • audience_idstringrequired

    Audience to send to.

  • fromstringrequired

    Verified sender.

  • subjectstringrequired

    Supports contact variables.

  • htmlstringrequired

    Supports contact variables and {{{MAILVINA_UNSUBSCRIBE_URL}}}.

  • textstring

    Plain-text version.

  • namestring

    Internal name.

  • reply_tostring

    Reply-To address.

  • sendboolean

    Send after creating.

  • scheduled_atstring

    ISO 8601; used with send.

Request

curl -X POST 'https://api.mailvina.com/broadcasts' \
  -H 'Authorization: Bearer mv_xxxxxxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "November update",
  "audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
  "from": "Acme <[email protected]>",
  "subject": "What’s new",
  "html": "<p>Big news…</p>"
}'

Response

{
  "id": "559ac32e-9ef5-46fb-82a1-b76b840c0f7b"
}