GREEN-API for WhatsApp icon

GREEN-API for WhatsApp

Send and receive WhatsApp messages using Green-API.

Group → createGroup

AI-generated

Summary

Create a new WhatsApp group.

Inputs

  • groupName (required) — The name of the group to be created.
  • chatIds (required) — A collection of chat IDs to be added to the group. Each chat ID must be specified in the format 'number@c.us', where 'number' is the participant's phone number.

Output shape

a confirmation response of the created group

The operation returns details about the created group, including a unique group ID and participant list.

Examples

Example 1: Creating a group named 'Family' with chat IDs '79000000000@c.us' and '79000000001@c.us'.

Set 'groupName' to 'Family' and 'chatIds' to include the specified chat IDs.

Discussion