Get Invite Link
POST /api/group/invite-code
Returns the shareable invite code + link for a group. Distinct from Get Group Metadata.
- Auth: Bearer Device Key
Fields
| Field | Type | Required |
|---|---|---|
group_id | string | ✔ |
Request
curl -X POST https://app.rapiwa.com/api/group/invite-code \
-H "Authorization: Bearer YOUR_DEVICE_KEY" \
-H "Content-Type: application/json" \
-d '{"group_id":"120363000000000000@g.us"}'
Response
{
"success": true,
"message": "Invite code retrieved successfully",
"data": {
"status": true,
"group_id": "120363000000000000@g.us",
"invite_code": "ABCdef123456",
"invite_link": "https://chat.whatsapp.com/ABCdef123456"
}
}
Related: Join a Group