POST
/api/groups/invite/accept
Accept a group invitation using an invite code.
Accept Group Invite
This endpoint allows the connected WhatsApp account to join a group using a specific invitation code. The code is typically part of a group invite link (e.g., https://chat.whatsapp.com/INVITE_CODE).
Parameters
Name | Type | Required | Description |
---|---|---|---|
code | string | Yes | The unique invitation code from the group invite link that you want to accept. |
Code Examples
curl -X POST "https://www.wasenderapi.com/api/groups/invite/accept"
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"code": "SAMPLE_INVITE_CODE"
}'
Response Examples
{
"success": true,
"data": {
"id": "[email protected]"
}
}