Documentation
Sign inGet started

bird email broadcasts create

Usage

Esempio di codice
bird email broadcasts create [flags]

Description

Create a broadcast
Every field is optional; a broadcast can be created as an empty draft and filled in later with "bird email broadcasts update". Pass --send to dispatch on creation instead of leaving a draft.
Build the request from flags, a JSON EmailBroadcastCreateRequest body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Examples

Esempio di codice
# print the body shape (no credentials needed)
bird email broadcasts create --example

# the body it prints:
Esempio di codice
{
  "audience_id": "adn_01krdgeqcxet5s7t44vh8rt9mg",
  "category": "marketing",
  "from": "hello@bird.com",
  "metadata": {
    "campaign_id": "12345"
  },
  "tags": [
    {
      "name": "campaign",
      "value": "spring_launch"
    }
  ],
  "template": {
    "id": "emt_01krdgeqcxet5s7t44vh8rt9mg"
  }
}

Options

Content

NameDescription
--fromSender address. Accepts a bare address or RFC 5322 "Name <addr>" form
--audience-idAudience to send to
--templateTemplate id (emt_…) whose latest published version supplies the content
--reply-to <v1,v2,…>Reply-To address; repeatable. Accepts bare addresses or RFC 5322 "Name <addr>" form

Labels & metadata

NameDescription
--header <key=value>Custom header as Key=Value; repeatable
--tag <key=value>Tag as name=value; repeatable
--metadataArbitrary JSON metadata object
--categorySuppression policy: marketing (default) or transactional
--ip-pool-idIP pool id (ipp_…) to send from

Tracking

NameDescription
--track-opensTrack open events (default true)
--track-clicksTrack click events (default true)

Delivery

NameDescription
--sendDispatch on creation, immediately or at --scheduled-at, instead of leaving a draft
--scheduled-atSchedule the send for a future time (RFC 3339, e.g. 2026-07-10T09:00:00Z); requires --send

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird email broadcasts cancelCancel a broadcast
bird email broadcasts countsGet a broadcast's audience counts
bird email broadcasts deleteDelete a broadcast
bird email broadcasts getGet a broadcast
bird email broadcasts listList broadcasts
bird email broadcasts list-eventsList events for a broadcast
bird email broadcasts list-recipientsList recipients of a broadcast
bird email broadcasts sendSend a broadcast
bird email broadcasts updateUpdate a draft or scheduled broadcast