Creating groups
Groups
Creating groups
Creates a group with its respective participants
POST
Creating groups
Overview
This method is responsible for creating a group with its respective participants.You must not pass the connected number in the participants list. At least one contact is required to create a group, just like on WhatsApp Web.
Attributes
Header
Your instance ID. Available in the Z-API panel under Instances.
Your Z-API instance token.
Required
Defines whether a private invite will be sent to participants who cannot be added directly
Group name
List of participant phone numbers
Request Body
Response
200
ID/Phone of the created group
List of identifiers that were not added to the group. A participant may appear here for two reasons:
- Use of @lid: identifiers in the
@lidformat are not supported for group creation. The group will be created normally, but the participant with @lid will be left out and their identifier will be listed here. - Permission issue (autoInvite): when a number cannot be added directly to the group and
autoInviteis enabled, a private invite is sent to them. Until the invite is accepted, the number is returned in this field.
Group invitation link