Groups
Reset Invite Link
Revoke the current invite link and generate a new code / link for the group
POST
Reset Invite Link
Auth:
Envelope:
TokenAccount or TokenInstance • Rate-limit: Global (100/min) • Idempotent: no (each call generates a different code)
Description
Revokes the group’s current invite link and generates a new one. Only admins can call. Use it whenever you suspect the link has leaked or after removing a member you do not want back.Examples
Reset link
Revokes the current invite link of the group120363406289005073@g.us and generates a new code. The old link stops working immediately.
Success response
Returns the newinviteCode and inviteLink, both already active. The old link stops working immediately, replace any copies in onboarding flows, marketing materials, or printed QR codes.
200 OK
Path parameters
Instance name.
Headers
TokenAccount or TokenInstance.application/jsonRequest body
Group JID, invite code, or link.
Notes
- The old link stops working immediately, anyone who has not yet joined receives
Invite link has been revoked or expired. - To just query the current link without revoking it, use
GET /infoand readgroup.inviteLink. - For more severe compromise scenarios (compromised admin), also revoke admin from anyone who should not have it via
/participantswithaction=demote.
Errors
| HTTP | Message |
|---|---|
| 400 | Identifier is required |
| 403 | Not authorized to reset group invite link (must be admin) |
| 404 | Group not found or you are not a member of this group |