Sign inGet started

bird whatsapp groups create

Usage

Code example
bird whatsapp groups create [flags]

Description

Create a WhatsApp group
Create a WhatsApp group administered by one of your business numbers. The number must hold Official Business Account status, which bird whatsapp numbers list reports as is_official_business_account. The response is the accepted group with status pending; WhatsApp confirms it moments later, which is when the group gains its invite link and becomes messageable. Re-read the group until its status is active.
Build the request from flags, a JSON WhatsAppGroupCreate 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.

Procedure

Step 2 of 5 of "Create a WhatsApp group and let people into it". Previous: bird whatsapp numbers list. Next: bird whatsapp groups get.

Examples

Code example
# print the body shape (no credentials needed)
bird whatsapp groups create --example

# the body it prints:
Code example
{
  "description": "Jim would like to learn about new car purchase options for current year models.",
  "join_approval_mode": "auto_approve",
  "subject": "New Purchase Inquiry",
  "whatsapp_number_id": "wan_01krdgeqcxet5s7t44vh8rt9mg"
}

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
--whatsapp-number-idThe business number that will own and administer the group, as its id in GET /v1/whatsapp/numbers. It must be a number your workspace can send from, and WhatsApp must have granted it Official Business Account status; a number without that status returns a 412 WhatsAppGroupsNotEligible. The number cannot be changed afterwards, and every message to the group is sent from it. (required; or in --body-file)
--subjectThe group's name, shown to participants and to anyone who opens the invite link. Surrounding whitespace is trimmed. (required; or in --body-file)
--descriptionThe group's description, shown alongside the subject.
--join-approval-modeWhether opening the invite link joins the group outright, or raises a join request for you to approve. Defaults to auto_approve. It cannot be changed once the group exists. Possible values: auto_approve, approval_required.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird whatsapp groups deleteDelete a WhatsApp group
bird whatsapp groups getGet a WhatsApp group
bird whatsapp groups listList WhatsApp groups
bird whatsapp groups updateUpdate a WhatsApp group