Sign inGet Started

bird whatsapp broadcasts preview

Usage

Exemple de code
bird whatsapp broadcasts preview <broadcast-id> [flags]

Description

Render a WhatsApp broadcast's message

Nothing is sent or saved. Keep preview_fingerprint for "bird whatsapp broadcasts test".

Build the request from the <broadcast_id> argument and flags, a JSON WhatsAppBroadcastPreviewRequest 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 6 of 8 of "Check, test and send a WhatsApp broadcast". Previous: bird whatsapp broadcasts pricing-estimate. Next: bird whatsapp broadcasts test.

Examples

Exemple de code
# print the body shape (no credentials needed)
bird whatsapp broadcasts preview --example

# the body it prints:
Exemple de code
{
  "contact_id": "con_01krdgeqcxet5s7t44vh8rt9mg",
  "template": {
    "language": "es",
    "parameters": {
      "header_url": "https://cdn.example.com/fall.jpg",
      "promo_code": "FALL26"
    }
  }
}

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
--languageOverride the language: One of the template's languages, such as en-US. Omit it to choose each recipient's language from their phone number's country
--parametersOverride the parameters. Template inputs as one JSON object, such as {"promo_code":"FALL25"}; replaces the whole map
--contact-idContact whose data fills the template; required when it reads contact data
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp broadcasts cancelCancel a WhatsApp broadcast
bird whatsapp broadcasts countsGet a WhatsApp broadcast's audience counts
bird whatsapp broadcasts createCreate a WhatsApp broadcast
bird whatsapp broadcasts deleteDelete a WhatsApp broadcast
bird whatsapp broadcasts getGet a WhatsApp broadcast
bird whatsapp broadcasts listList WhatsApp broadcasts
bird whatsapp broadcasts list-recipientsList recipients of a WhatsApp broadcast
bird whatsapp broadcasts pricing-estimateEstimate the cost of a WhatsApp broadcast
bird whatsapp broadcasts sendSend a WhatsApp broadcast
bird whatsapp broadcasts send-quotaGet the messaging limit for a WhatsApp broadcast
bird whatsapp broadcasts testSend a WhatsApp broadcast's previewed message to one number
bird whatsapp broadcasts updateUpdate a draft or scheduled WhatsApp broadcast
bird whatsapp broadcasts validateCheck whether a WhatsApp broadcast can send

Poursuivez avec la documentation, les guides et les exemples sur ce sujet.