bird whatsapp broadcasts preview
Usage
Codevoorbeeld
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
Codevoorbeeld
# print the body shape (no credentials needed)
bird whatsapp broadcasts preview --example
# the body it prints:Codevoorbeeld
{
"contact_id": "con_01krdgeqcxet5s7t44vh8rt9mg",
"template": {
"language": "es",
"parameters": {
"header_url": "https://cdn.example.com/fall.jpg",
"promo_code": "FALL26"
}
}
}Options
Request
| Name | Description |
|---|---|
--body-file | Read the JSON request body from this file; "-" reads stdin |
--example | Print a complete example request body, then exit |
--dry-run | Print the resolved request without sending it, then exit |
--idempotency-key | Accepted for this POST request. Each call computes a fresh result; reusing the key does not replay an earlier result. |
Options
| Name | Description |
|---|---|
--language | Override 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 |
--parameters | Override the parameters. Template inputs as one JSON object, such as {"promo_code":"FALL25"}; replaces the whole map |
--contact-id | Contact whose data fills the template; required when it reads contact data |
--response-schema | Print the fields this command returns, then exit |
Related
| Name | Description |
|---|---|
bird whatsapp broadcasts cancel | Cancel a WhatsApp broadcast |
bird whatsapp broadcasts counts | Get a WhatsApp broadcast's audience counts |
bird whatsapp broadcasts create | Create a WhatsApp broadcast |
bird whatsapp broadcasts delete | Delete a WhatsApp broadcast |
bird whatsapp broadcasts get | Get a WhatsApp broadcast |
bird whatsapp broadcasts list | List WhatsApp broadcasts |
bird whatsapp broadcasts list-recipients | List recipients of a WhatsApp broadcast |
bird whatsapp broadcasts pricing-estimate | Estimate the cost of a WhatsApp broadcast |
bird whatsapp broadcasts send | Send a WhatsApp broadcast |
bird whatsapp broadcasts send-quota | Get the messaging limit for a WhatsApp broadcast |
bird whatsapp broadcasts test | Send a WhatsApp broadcast's previewed message to one number |
bird whatsapp broadcasts update | Update a draft or scheduled WhatsApp broadcast |
bird whatsapp broadcasts validate | Check whether a WhatsApp broadcast can send |
Gerelateerde bronnen
Ga verder met de documentatie, handleidingen en voorbeelden voor dit onderwerp.