Join group / Get join info

Use GET to fetch information about a group before joining, or POST to join it. Accepts both direct invite codes and full WhatsApp group links.

GET
https://api.wawp.net/v2/groups/join?access_token=123456789&code=FqkbDWXAIzvBwF04luAefz&instance_id=123456789

Authentication Required

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

Log In
Test /v2/groups/join endpoint
GETPOST

No query parameters required

This endpoint doesn't expect data in the URL.

Best practices

  • Only join groups relevant to your business purpose.

  • Leave groups immediately if you joined by mistake to maintain account health.

  • Ensure you have the valid 'invite_code' from the get-info endpoint.

Dynamic Entry: The Strategic Orchestration of Accessible Communities

In the expansive world of WhatsApp ecosystem management, the Join Group endpoint is your primary tool for Permissionless Scale and Community Self-Onboarding. While the Add Participants endpoint allows a business to push users into a group, the Join API reverses this logic, allowing your automated instances (or your users' bots) to pull themselves into a conversation using a secure Invite Code. This endpoint is the architectural bridge between a public marketing link and a private, high-trust community space, enabling a seamless transition from discovery to interaction.

For enterprise architects, managing "Entry Points" is about Scaling Accessibility without Sacrificing Governance. This guide explores the strategic imperatives of invite-driven growth and the orchestration of dynamic community entry.


🏗️ Architectural Philosophy: The Bridge from Link to Membership

From a technical perspective, the Join Group endpoint is a State Resolution Engine. It converts an ephemeral Invite Code into a permanent membership state.

Key Architectural Objectives:

  • The Power of the Invite Code: The invite code (or the full chat.whatsapp.com URL) is a cryptographically secure token that represents a standing invitation to a specific Global-JID. By using this code, your instance can bypass the need for a direct administrator invitation, provided the code is still valid. This is essential for building "Viral" growth loops where communities expand through shared links rather than manual admin labor.
  • Permissionless Discovery (GET Info): A unique feature of this endpoint is the ability to use the GET method to Probe the Group State before joining. This allows your system to verify the group's name, its current member count, and its profile picture without committing to membership. This "Pre-flight Verfication" is critical for avoiding accidental entry into a non-compliant or irrelevant group.
  • Global Membership Propagation: Once the POST call is executed, Meta's infrastructure instantly updates the group's membership list across all participant devices. Your instance's JID is now authorized to see the conversation history (from the moment of joining) and participate in active dialogue.

🚀 Strategic Use Cases: Marketing Funnels and Automated Scaling

The Join Group endpoint enables a "Pull-Based" community strategy that is highly effective for high-volume customer engagement.

1. The "Call-to-Action" Marketing Funnel

In modern marketing, the "WhatsApp Community" is the new landing page. Your system can generate thousands of unique landing pages or emails featuring a "Join our VIP Alert Group" button. When the user clicks this button, your system can use the Join Group endpoint to ensure your official support bot or campaign instance is also present in that specific room to welcome the user. This creates a "Managed Arrival" experience where the user enters a room that already has a helpful assistant waiting for them.

2. The "Sub-Agent" Distribution Model

For massive communities that exceed the 1,024-member limit of a single group, your system can use a "Cellular Expansion" model. When a group reaches capacity, the system creates a new group, generates an Invite Code, and then uses the Join Group endpoint to move "Squad Bots" or specialized support instances into the new room. This allow your automation to scale horizontally across an unlimited number of groups, with each bot "Joining" its assigned cell programmatically.

3. Cross-Instance Resilience and Recovery

If a primary WhatsApp account is lost or restricted, your system needs a way to "Re-Colonize" its existing communities with a backup account. By maintaining a database of your groups' Invite Codes, your system can programmatically instruct a new instance to Join all existing high-value groups. This "Automated Recovery" ensures that your business logic retains its presence in critical conversations even in the face of account-level interruptions.


🔐 Administrative Mandate: Authority and Permission Management

Joining a group is a high-trust event. Your system must ensure that its entry into a room is both authorized and strategic.

Managing the "Invite Code" Lifecycle

An invite code is a permanent vulnerability if handled poorly. Anyone with the code can join the group. Your system should use the Revoke Invite Code endpoint periodically to disable legacy codes and generate new ones. The Join Group endpoint will always fail if the code has been revoked, providing a powerful gatekeeping mechanism for your automated communities.

Visibility and Legal Compliance

When an instance joins a group, it becomes a "Data Processor" for that conversation. In regulated industries (like Healthcare or Finance), you must ensure that your system only joins groups where its presence is legally authorized. Use the GET probe to verify the group's identity against your internal "Allowed Groups" list before performing the POST join operation. This "Sanity Check" prevents accidental data exposure and ensures your platform remains compliant with privacy standards.


🛡️ Operational Best Practices: Consistency and Contextual Arrival

  • The "Welcome Greeting" Pattern: Upon joining a group, your instance should immediately send a "Service Identification" message (e.g., "Support Assistant #4 has joined the room. Type /help for assistance."). This prevents your system from appearing as a "Ghost Participant" and establishes its role from the first second.
  • Monitoring Member Count: Use the GET probe to track the population of the group you are about to join. Joining a nearly-empty group requires a different introductory tone than joining a 500-member community hub.
  • Coordinate with CRM Logic: Your internal database should update the group's status to active only after the API returns the confirmed Global-JID (@g.us). This JID is the primary key for all future interactions and must be carefully persisted.

⚙️ Engineering Best Practices: The Validation Loop

  1. Probe Before You Commit: Always use the GET method first to verify the code is valid and the group belongs to your organization. This avoids "Joining Errors" and prevents your system from being added to malicious or spam groups.
  2. Rate Throttling for Mass Join Operations: if your system is performing a recovery sequence (joining 100+ groups), stagger the joined calls. Joining too many groups in a single minute can trigger Meta's security heuristics, which might flag the account as a "Bot Net." A rate of 2-5 joins per minute is recommended for large-scale operations.
  3. Webhook Integration: Listen for the group.join event. This confirms that the network has accepted your instance as a member. When this event arrives, you can trigger your "Onboarding Workflow" for that specific group.

🎯 Conclusion: Mastering the Art of the Accessible Community

The Join Group endpoint is the "Gateway" of your community architecture. It is your most powerful tool for building scalable, accessible, and resilient conversational networks. By treating the act of joining as a strategic, programmable event, you create a professional environment that is easy for your systems to enter and easy for your users to discover. You move beyond "Push-Only" messaging and into the world of Dynamic Conversational Ecosystems, where your authority is distributed through secure codes and your presence is always where it's needed most.

Request Parameters

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

URL Parameters

Passed in the URL query string
string

Your unique WhatsApp Instance ID

Example:
string

Your API Access Token

Example:
string

Group invite code or full WhatsApp invite URL

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/join";
3const params = new URLSearchParams({
4 "instance_id": "123456789",
5 "access_token": "123456789",
6 "code": "FqkbDWXAIzvBwF04luAefz"
7}).toString();
8
9
10fetch(`${baseUrl}${endpoint}${params ? '?' + params : ''}`, {
11 method: "GET",
12 headers: { "Content-Type": "application/json" },
13
14})
15 .then(async (response) => {
16 if (response.ok) {
17 const data = await response.json();
18 console.log("Success:", data);
19 return data;
20 }
21
22 // Error Handling
23
24
25 const errorText = await response.text();
26 console.error(`Error ${response.status}: ${errorText}`);
27 })
28 .catch((error) => console.error("Network Error:", error));
Interactive Samples
Ln 28, 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.

Successful operation
application/json
string *
string *
string *

Example

{
"id": "1234567890@g.us",
"subject": "Community Group",
"description": "Group for testing"
}

Command Palette

Search for a command to run...