GET
/api/groups/{groupJid}/invite-link
This endpoint retrieves the invite link for a specific WhatsApp group.
Get Group Invite Link
Retrieves the invite link for a specific WhatsApp group. This link can be shared with others to allow them to join the group.
Only administrators of a group can generate an invite link. If the authenticated user is not an admin of the specified group, the request will fail.
FAQ
How do I find the groupJid
?
You can retrieve the groupJid
for all groups the connected account is a member of by using the Get All Groups endpoint.
Can any member of a group generate an invite link?
No, only administrators of a group have the permission to generate an invite link.
Parameters
Name | Type | Required | Description |
---|---|---|---|
groupJid | string | Yes | The JID (Jabber ID) of the group in the format [email protected]. |
Code Examples
curl "https://www.wasenderapi.com/api/groups/{groupJid}/invite-link"
-H "Authorization: Bearer YOUR_API_KEY"
Response Examples
{
"success": true,
"inviteLink": "https://chat.whatsapp.com/I8mjkHnC984Ubg3EVkzqxz"
}