For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reserve and check a WhatsApp account username

Set & Get WhatsApp account username via API

WhatsApp is introducing usernames, allowing users to be found by @username instead of relying only on phone numbers.

This improves privacy and gives personal accounts, creators, and brands a more recognizable identity inside WhatsApp.

For more context, see: WhatsApp usernames and BSUID

Current status

At the moment, this method allows you to reserve a WhatsApp username.

We are monitoring WhatsApp updates and will adapt the API if WhatsApp changes the username registration flow or related architecture.

Reserve a username

Use the Set account username method: PATCH https://gate.whapi.cloud/users/username

Example request:

Request body

  • reserve β€” set to true to reserve the username.

  • username β€” the username you want to reserve for the connected WhatsApp account.

Check the current username

Use the Get account username method: GET https://gate.whapi.cloud/users/username

This method shows the username state for the WhatsApp account connected to your Whapi.Cloud channel.

For partners, it can also be used to check the username state of a customer’s connected number.

Example request:

Example response

Response fields

  • username β€” the username reserved or assigned to the connected WhatsApp account.

  • state β€” the current username state. For example, RESERVED.

  • pin β€” reserved for additional username-related verification data if required by WhatsApp.

Important notes

  • Username availability and behavior depend on WhatsApp.

  • Reserving a username does not necessarily mean that username-based messaging is already available for the account.

  • If WhatsApp updates the username flow, Whapi.Cloud will adjust the API behavior accordingly.

  • Use GET /users/username to check the current state after reservation.

Last updated