Skip to main content
POST
Create group

Overview

Method that creates a group with its participants. You cannot send the image when creating the group: add it afterwards with Update group photo. Do not include the connected number in the participants list. As on WhatsApp Web, at least one contact is required to create the group. Use phone numbers only. The @lid identifier is not supported for group creation: if sent, the group is created, but the participant with @lid is not added and the identifier comes back in phonesNotAdded.
On WhatsApp Official, nobody is added at creation: the numbers in phones come back in phonesNotAdded, because Meta does not allow adding participants manually, and entry is only through the invitationLink. The group has at most 8 participants. To require join approval, send requireAdminApproval true.

Authorizations

Authorization
string
header
required

Secret Key generated in the Omni Z-API Security panel

Body

application/json
autoInvite
boolean
required

If the participant cannot be added, sends a private invitation with the group link. Ignored on WhatsApp Official

groupName
string
required

Group name

Example:

"Grupo Z-API"

phones
string[]
required

List of the participants' phone numbers

requireAdminApproval
boolean

Requires administrator approval to join the group. Exists only on WhatsApp Official

Response

Success.

phone
string

Group ID/Phone

phonesNotAdded
string[]

Identifiers that were not added to the group

Group invitation link