Documentation Index
Fetch the complete documentation index at: https://docs.ryzeapi.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Auth: 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 group 120363406289005073@g.us and generates a new code. The old link stops working immediately.
curl -X POST "https://ryzeapi.cloud/api/group/resetLink/$Instance_Name" \
-H "token: $Token_Instance" \
-H "Content-Type: application/json" \
-d '{
"identifier": "120363406289005073@g.us"
}'
Success response
Returns the new inviteCode and inviteLink, both already active. The old link stops working immediately, replace any copies in onboarding flows, marketing materials, or printed QR codes.
{
"success": true,
"message": "Group invite link reset successfully",
"groupJid": "120363406289005073@g.us",
"inviteCode": "NEW123XYZ",
"inviteLink": "https://chat.whatsapp.com/NEW123XYZ"
}
Path parameters
TokenAccount or TokenInstance.
Request 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 /info and read group.inviteLink.
- For more severe compromise scenarios (compromised admin), also revoke admin from anyone who should not have it via
/participants with action=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 |
Envelope:
{
"success": false,
"error": { "message": "Not authorized to reset group invite link (must be admin)" }
}