GET
/api/groups/invite/{inviteCode}
Retrieves metadata for a group from its invite code.
Get Group Invite Info
This endpoint allows you to fetch public information and metadata about a WhatsApp group by using its invitation code, without actually joining the group. It's useful for previewing a group's subject, description, and size.
Parameters
Name | Type | Required | Description |
---|---|---|---|
inviteCode | string | Yes | The unique invitation code from the group invite link. For example, in the link https://chat.whatsapp.com/ABCDE12345, the code is ABCDE12345. |
Code Examples
curl -X GET "https://www.wasenderapi.com/api/groups/invite/SAMPLE_INVITE_CODE"
-H "Authorization: Bearer YOUR_API_KEY"
Response Examples
{
"success": true,
"data": {
"id": "[email protected]",
"subject": "Official Project Group",
"owner": "[email protected]",
"creation": 1672531200,
"size": 42,
"desc": "This is the official group for project updates.",
"participants": [
{ "id": "[email protected]", "admin": "superadmin" },
{ "id": "[email protected]", "admin": "admin" }
]
}
}