What is a WhatsApp invite code?

Definition

An invite code is the short string at the end of a chat.whatsapp.com link that lets anyone holding it join a group without being added by an admin. It can be read, shared and revoked, and revoking it invalidates every copy of the old link at once, everywhere it was pasted.

In more depth

Invite links are how groups actually grow, because adding a stranger to a group directly is both rude and one of the fastest ways to get a number reported. The link is a capability: anyone who has it can join, so it should be treated like a password rather than like a URL. The two operations that matter for automation are reading the current code, so you can put it on a landing page or in a confirmation email, and revoking it, which generates a fresh code and kills every old link instantly. A sensible pattern is to rotate the code on a schedule and publish only the current one through a redirect you control, so a link that leaks into a public channel stops working within a day without anyone having to notice. You can also resolve a code you have been given into group metadata before joining, which lets a bot check the group's name and size and decide whether to accept.

In the Wapito API

On the wire it is the field invite_code:

{
  "invite_code": "HxYz1AbCdEf2GhI",
  "link": "https://chat.whatsapp.com/HxYz1AbCdEf2GhI"
}

On the official Cloud API

Meta's Cloud API reference documents no group endpoints, so there is no official way to read or revoke a group invite link.

Wapito is an independent product. It is not affiliated with, endorsed by, sponsored by or certified by WhatsApp or Meta Platforms, Inc. WhatsApp is a trademark of Meta Platforms, Inc.

Related terms

Related

Try it on your own number

Create a channel, link a WhatsApp number by QR or pairing code, and call the API in a couple of minutes. The Sandbox plan is free and needs no card.