Create group

Create a new WhatsApp group with specified name and participants.

POST
https://api.wawp.net/v2/groups?access_token=123456789&instance_id=123456789&name=New+Project&participants=%5B%7B%22id%22%3A%221234567890%40c.us%22%7D%5D

Authentication Required

Login to swap the placeholders with your real Instance ID and Access Token.

Log In
Test /v2/groups/create endpoint
POST
POST

No query parameters required

This endpoint doesn't expect data in the URL.

Best practices

  • Always store the returned @g.us ID immediately.

  • Send a welcome message explaining the group's purpose as soon as it is created.

  • Limit initial participants to known contacts to avoid spam reports.

Semantic Initialization: The Genesis of Distributed Communities

The Create Group endpoint sits at the very heart of your conversational architecture. It is far more than a simple technical request to allocate a new chat identifier; it is a strategic operation that establishes a programmatic shared context between your business and a specific set of participants. By moving the group creation process from the manual efforts of an agent to the precision of an API, you ensure that every new project, every VIP customer onboarding, and every internal coordination team begins its lifecycle with the correct branding, the exact stakeholders, and a strictly defined set of permissions.

In an enterprise environment, "Creating a Group" is the act of Provisioning a Managed Asset. This guide explores the architectural nuances and strategic imperatives of building communities through initialization.


🏗️ Architectural Philosophy: Atomic State Allocation

From a system design perspective, creating a group is an Atomic Operation. In a single transaction, your system defines both the Identity of the community and its Initial Population. This synchronicity is critical for maintaining consistency between your backend CRM and the reality of the WhatsApp network.

The Dynamics of the Global-JID (G-JID)

When a group is born through this endpoint, the WhatsApp network generates a unique, immutable identifier ending in @g.us. This "G-JID" is the most important piece of metadata your system will ever handle for that community.

  • Persistence & Mapping: Unlike user phone numbers, which can occasionally change or be recycled, the group ID is permanent. Your system must treat this ID as the Primary Key in your internal database. All future interactions—sending messages, updating settings, or auditing participants—must be anchored to this specific ID.
  • Zero-Latency Inclusion: The participants you define in the creation call are added to the state immediately. There is no invitation process or "acceptance window" required when adding users via this endpoint. They are instantly merged into the shared context, allowing your system to follow up the creation call with a welcome message that is seen by all members the very second they are joined.

🎭 The Creator’s Mandate: Establishing Permanent Governance

The most critical strategic outcome of using the Wawp API for group creation is the automatic assignment of Creator status to your instances. In the WhatsApp governance hierarchy, the Creator role is unique and powerful.

Irrevocable Authority

As the creator of the group, your instance holds a level of authority that no other admin can challenge. A creator cannot be demoted, and they cannot be removed by other administrators. This provides a "Steel-Clad Safeguard" for your business communications. Even if a participant is accidentally promoted to admin and attempts to "take over" the group, your system retains absolute control. This allows you to build high-trust collaborative environments while maintaining the peace of mind that your business owns the channel, the data, and the membership list.


🚀 Strategic Participant Management: Trust and the Privacy Wall

Managing who enters a group is as important as the messages sent within it. Because groups expose the phone numbers of all participants to one another, initialization is a "High-Sensitivity" operation that must be balanced with user privacy.

Navigating the Privacy Shield

WhatsApp provides robust privacy settings for individual users. If a user has restricted group adds to "My Contacts Only," or if they have blocked your business instance, a direct add during the creation process will return a success signal from the API, but the user will not actually appear in the group list. For mission-critical communities (like a project team), your system should implement an "Invite-as-Fallback" strategy. After the group is created, verify the participant list. If a key stakeholder is missing due to privacy restrictions, your system should automatically send a 1:1 message to that user containing the Group Invite Link. This ensures that participation is both easy and consensual.

The "Social Proof" Requirement

To maintain a high account health score, avoid adding large numbers of stranger numbers to a single group. Meta's heuristics look for "forced interaction." We recommend that your system only creates groups with participants who have had at least one 1:1 interaction with your business number in the past. This "pre-existing relationship" signals to the WhatsApp network that the group is a legitimate continuation of a business conversation, not a spam vector.


🎨 Optimizing the Group "Manifesto": Subjects, Descriptions, and Icons

The metadata defined during creation forms the "First Impression" for your participants. Every element of the group's visual identity should be optimized for clarity and professional branding.

The "Subject Line" Economy

While technically flexible, group names should be treated like subject lines in a professional email. Use Serialization and Prefixes (e.g., [VIP-2024] - Wawp Onboarding). This makes it possible for agents to search their inbox effectively and ensures that users know exactly why they have been added to a new chat.

The Description as a Command Center

The group description is the only part of the group's metadata that can hold a significant amount of text. Use it wisely. We recommend using the description field to host:

  • Standard Operating Procedures (SOPs) for the group.
  • Links to external customer portals or support documentation.
  • A list of "Bot Commands" that participants can use to interact with your system.

🛠️ Enterprise Workflow patterns: Automated War Rooms

The true power of the Create Group endpoint is realized when it is integrated into your broader business logic.

Scenario: The Automated Escalation War Room

When your monitoring system detects a "Severity 1" incident for a client, it doesn't just send an alert. It instantly calls the Create Group endpoint. It builds a "War Room" containing the client's CTO, your assigned account manager, and the lead technical specialist. The group is named INCIDENT-999 | Critical Alert. Within seconds, all necessary stakeholders are in a single room, sharing screenshots and logs in real-time, drastically reducing the "Mean Time to Resolution" (MTTR).

Scenario: The Onsite Event Coordination Engine

For a physical conference, your system creates a "Breakout Group" for each seminar session. As users scan a QR code at the door, they are added to the group. This allows the speaker to share slides instantly and allows attendees to ask questions via the chat, which your bot can then aggregate and present to the speaker at the end of the session.


🛡️ Operational Guardrails & Rate Management

Initialization is a "Heavy" operation on the WhatsApp infrastructure. To ensure long-term reliability and stay within Meta's undocumented rate limits, follow these engineering principles:

  1. Staggered Creation: Avoid "Creation Bursts" (e.g., 100 groups in 60 seconds). If your system needs to provision many groups for a campaign, use a background worker to stagger the requests. A rate of 5-10 group creations per hour per instance is considered highly safe for enterprise-grade accounts.
  2. Social History Priming: Ensure your instance has an "Active Profile." An account that does nothing but create groups is often flagged for review. Ensure your instance is also sending 1:1 messages and participating in existing threads to maintain a natural "Account Signature."
  3. Local Metadata Buffering: Once a group is created, store the ID, name, and participant list in a high-speed local cache (like Redis). This allows your frontend to display group information instantly without hitting the API for every page load, improving user experience and reducing API overhead.

🎯 Conclusion: The Foundation of Community

By mastering the Create Group endpoint, you are building the logical foundation of your conversational enterprise. You are moving beyond the era of "One-Way Alerts" and into the era of Collaborative Customer Success. When used strategically, this endpoint turns WhatsApp into a dynamic, programmable, and highly governed environment where every shared context is an opportunity for a deeper, more meaningful business relationship.

Request Parameters

Configure the parameters required to interact with this endpoint. All query and body arguments are listed below with their details.

Request Body

Sent as a JSON object
string

Your unique WhatsApp Instance ID

Example:
string

Your API Access Token

Example:
string

Name of the group

Example:
array

List of participant JIDs to add to the group

Example:

Request Samples

Use these ready-to-go code snippets to integrate our API into your project quickly and efficiently. Choose your preferred language and library.

1const baseUrl = "https://api.wawp.net";
2const endpoint = "/v2/groups";
3const params = new URLSearchParams({
4 "instance_id": "123456789",
5 "access_token": "123456789"
6}).toString();
7const body = {
8 "name": "New Project",
9 "participants": [
10 {
11 "id": "1234567890@c.us"
12 }
13 ]
14};
15
16fetch(`${baseUrl}${endpoint}${params ? '?' + params : ''}`, {
17 method: "POST",
18 headers: { "Content-Type": "application/json" },
19 body: JSON.stringify(body)
20})
21 .then(async (response) => {
22 if (response.ok) {
23 const data = await response.json();
24 console.log("Success:", data);
25 return data;
26 }
27
28 // Error Handling
29 if (response.status === 401) {
30 console.error("Error 401: Unauthorized - Invalid or Missing Access Token");
31 }
32 if (response.status === 400) {
33 console.error("Error 400: Bad Request - Invalid Parameter Format");
34 }
35 if (response.status === 500) {
36 console.error("Error 500: Internal Server Error - Unexpected Failure");
37 }
38
39 const errorText = await response.text();
40 console.error(`Error ${response.status}: ${errorText}`);
41 })
42 .catch((error) => console.error("Network Error:", error));
Interactive Samples
Ln 42, Col 1javascript

Expected Responses

Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.

Group created successfully
Bad Request - Invalid Parameter Format
Unauthorized - Invalid or Missing Access Token
Internal Server Error - Unexpected Failure
Previous TopicGet All List groups
Next TopicJoin group / Get join info

Command Palette

Search for a command to run...