Sign inGet started

bird whatsapp reaction set

Usage

Code example
bird whatsapp reaction set <message-id> [flags]

Description

React to a WhatsApp message
Place an emoji reaction on a WhatsApp message the workspace received. You hold at most one reaction per message, so calling this again replaces the emoji rather than adding a second one. The message must be one the contact sent and still resolvable: Bird keeps the id a reaction needs for 15 days, so an older message is a 404. The 202 is the reaction accepted, not delivered: use whatsapp_get and read the message's reactions to see what stands, or whatsapp_reaction_list_events for what WhatsApp made of it.
Build the request from flags, a JSON WhatsAppReactionUpsert 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

Code example
# print the body shape (no credentials needed)
bird whatsapp reaction set --example

# the body it prints:
Code example
{
  "emoji": "👍"
}

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-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--emojiThe emoji to place, as the character itself. Replaces your existing reaction on this message if you have one. To take a reaction back entirely, delete it rather than sending an empty value. WhatsApp takes exactly one emoji, so a value carrying more than one is refused with a 422 rather than sent. The length cap is generous because a single joined emoji is many code points: a couple-kissing one carrying two skin tones is ten, which is why the cap alone cannot express the limit. (required; or in --body-file)
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp reaction list-eventsList reaction events for a WhatsApp message
bird whatsapp reaction removeRemove your reaction from a WhatsApp message