Sign inGet Started

bird email broadcasts preview

Usage

Code example
bird email broadcasts preview <broadcast-id> [flags]

Description

preview a broadcast

Render the template's published content without sending email. Contact data requires --contact-id for an authorized contact. Requires broadcast and template read permission.

Build the request from the <broadcast_id> argument and flags, a JSON EmailBroadcastPreviewRequest body via --body-file ("-" reads stdin), or both — an inline value 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.

Procedure

Step 4 of 5 of "Preview and test a broadcast". Previous: bird email broadcasts validate. Next: bird email broadcasts test.

Examples

Code example
# print the body shape (no credentials needed)
bird email broadcasts preview --example

# the body it prints:
Code example
{
  "contact_id": "con_01krdgeqcxet5s7t44vh8rt9mg",
  "from": "Jane Doe <jane@acme.com>",
  "headers": {
    "X-Campaign": "spring-launch"
  }
}

Options

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-keyAccepted for this POST request. Each call computes a fresh result; reusing the key does not replay an earlier result.

Options

NameDescription
--templateOverride the template ID
--languageOverride the selected template language
--parametersComplete authored template input map as JSON; {} clears the map
--parameter-overridesComplete per-language override map as JSON; a name a language leaves out uses --parameters, and {} clears every override
--fromOverride sender address
--reply-to <value>…Override reply address; repeatable
--header <key=value>Replace headers as Key=Value
--contact-idActual contact whose referenced values render
--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 createCreate a broadcast
bird email broadcasts deleteDelete a broadcast
bird email broadcasts getGet a broadcast
bird email broadcasts listList broadcasts
bird email broadcasts list-clicked-linksList a broadcast's clicked links
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 send-quotaGet the email send allowance for a broadcast
bird email broadcasts testtest a broadcast
bird email broadcasts updateUpdate a draft or scheduled broadcast
bird email broadcasts validatevalidate a broadcast

Continue with the documentation, guides and examples for this topic.