WhatsApp Usernames and BSUIDs: Fix Your Integration

WhatsApp usernames mean the phone number can vanish from Cloud API webhooks. How to move to BSUIDs, keep CRM records linked and keep OTP working.

WhatsApp Usernames and BSUIDs: Fix Your Integration

Many WhatsApp Cloud API systems I see in Iraq and the Kurdistan Region use the customer's phone number as their customer ID. CRMs, chatbots, support desks, opt-out lists and delivery or payment notifications all look people up by number. WhatsApp usernames change that assumption. When a customer adopts a username, their phone number can stop appearing in the webhooks Meta sends you, and records that used to link up can quietly stop matching.

This article is for developers and IT managers who need to fix that before usernames reach their customers. The rollout is gradual and managed by Meta, so I won't guess a local date. The work is the same either way.

What changes with WhatsApp usernames

To support usernames, Meta began sharing a new identifier in April 2026: the business-scoped user ID, or BSUID. According to Meta's developer documentation, supporting BSUIDs is required for all partners and directly integrated businesses on the WhatsApp Business Platform, as well as click-to-WhatsApp advertisers.

The key properties are:

  • Scoped to your business portfolio. The same person has a different BSUID with each business they talk to. You cannot use it to match people across unrelated businesses.
  • Stable, with one exception. It stays the same unless the user changes their phone number, in which case Meta generates a new one.
  • Not tied to the username. Changing a username does not change the user's phone number or BSUID.
  • Format. It looks like US.13491208655302741918: a two-letter country code, a dot, then the ID. Twilio's changelog notes it can be up to 128 alphanumeric characters, excluding the country code.
  • Parent BSUIDs. Organisations with several business portfolios may also see parent BSUIDs in a CC.ENT.… format. If that applies to you, store them as a separate identifier type.

The published timeline: businesses can reserve and claim usernames from 29 June 2026, and sending messages to a BSUID is supported from July 2026. Meta has moved these dates before, so treat them as a guide.

When the phone number disappears, and when it comes back

For a user with a username, Meta includes their phone number in webhooks for a given business number only if one of these is true:

  • you messaged or called their phone number in the last 30 days;
  • they messaged or called you from that number in the last 30 days;
  • they are in your contact book, a Meta-hosted list built from your interactions.

Status webhooks change in the same way: a recipient_user_id field sits next to recipient_id, and the phone-based field can be missing.

The loss is not permanent. As Infobip's documentation explains, any interaction from a business phone number, outbound or inbound, restores visibility on that number's webhooks. It also adds the user to the contact book, which gives visibility across your whole portfolio. Meta hosts the contact book and no integration work is needed, but I would check that it is enabled in Meta Business Suite under Business settings.

Redesign the data model around your own ID

The main fix is simple to describe: stop using the phone number as the primary key. Give every customer your own internal ID, and store phone numbers, BSUIDs, parent BSUIDs and usernames as linked identifiers.

Start with an audit. Search code and databases for wa_id, from, recipient_id and any contact key built from a phone number. Then check the less obvious places: chatbot session state, opt-out and block lists, duplicate checks, analytics, and links into helpdesk, delivery or payment systems.

Here is an example Laravel migration for an identifier table:

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
    public function up(): void
    {
        Schema::create('contact_identifiers', function (Blueprint $table) {
            $table->id();
            $table->foreignId('contact_id')->constrained()->cascadeOnDelete();
            // phone | bsuid | parent_bsuid | username
            $table->string('type', 20);
            // 128 chars for the ID plus room for prefixes such as "US." or "US.ENT."
            $table->string('value', 160);
            $table->timestamp('first_seen_at')->nullable();
            $table->timestamp('last_seen_at')->nullable();
            $table->timestamps();

            $table->unique(['type', 'value']);
        });
    }

    public function down(): void
    {
        Schema::dropIfExists('contact_identifiers');
    }
};

If one system serves several business portfolios, add a portfolio column and include it in the unique key, because BSUIDs are only unique within a portfolio.

Make message handling tolerate a missing number

Every handler for inbound messages, statuses, echoes and system messages should treat the phone number as optional. Check Meta's webhook reference, or your provider's, for the exact field names in your payloads. Then resolve the contact like this:

function resolveContact(?string $bsuid, ?string $phone): ?Contact
{
    $byBsuid = $bsuid ? ContactIdentifier::where('type', 'bsuid')->where('value', $bsuid)->first() : null;
    $byPhone = $phone ? ContactIdentifier::where('type', 'phone')->where('value', $phone)->first() : null;

    $match = $byBsuid ?? $byPhone;

    // Both arrived together: record the link for future BSUID-only messages
    if ($match && $bsuid && $phone && (! $byBsuid || ! $byPhone)) {
        $match->contact->addIdentifier($byBsuid ? 'phone' : 'bsuid', $byBsuid ? $phone : $bsuid);
    }

    return $match?->contact;
}

Log a message without a number as "BSUID only", not as an error. Otherwise your monitoring fills with false alarms the week usernames reach your customers.

Plan for BSUIDs that change. Because a new phone number brings a new BSUID, one person may build up several historical IDs. Merge records only when you have a verified link, such as both identifiers arriving in the same webhook. Never merge on display name or username alone.

In my view, a BSUID or username is a routing identifier, not proof of identity. Usernames are chosen and changed by the user. For KYC, payments or account recovery, keep relying on a verified phone number or stronger factors.

Sending messages, OTP and getting the number back

Send to the phone number whenever you have it; that interaction also keeps the number visible in your webhooks. Use the recipient field with the BSUID only when the number never arrived. The documentation for an open-source Cloud API library I have reviewed, which follows Meta's to and recipient fields, notes that when both are supplied, delivery goes to the phone number.

OTP needs care. One-tap, zero-tap and copy-code authentication templates require a phone number and cannot be delivered to a BSUID. For username-only users, plan a fallback: an SMS OTP to a number already verified in your own system, or an in-app passkey. At BulkSMSIraq, which I founded, one API sends OTPs over WhatsApp, Telegram and SMS with automatic SMS fallback. That is one practical way to cover this case.

To get a number back with consent, Meta is adding a REQUEST_CONTACT_INFO button, listed for early July 2026. There is an interactive version for open 24-hour conversations. Outside that window, you can add it as a button to a utility or marketing template. The label cannot be customised, so explain in your message text why you are asking. Record how and when the customer shared their number.

Finally, reserve a business username for each of your numbers. Adopting one does not hide your business phone number. Each number holds one username, and no two numbers share the same one. Publish your official handle on your website and in your app, so customers can spot lookalikes more easily.

Checklist and decision table

  1. Audit every place that keys on the phone number.
  2. Add an internal contact ID and an identifier table sized for 128-character BSUIDs plus prefix.
  3. Make the phone number optional in all webhook handlers and status processing.
  4. Look up by BSUID first, then phone, and store new links when both arrive.
  5. Merge contacts only on verified links.
  6. Keep OTP templates on phone numbers and build a fallback.
  7. Confirm the Meta contact book is enabled.
  8. Reserve business usernames and publish them.
  9. Replay test webhooks with the phone number removed in staging, and check CRM matching, opt-outs and reports.
Situation What to do
Phone and BSUID both present Match, store both, send to the phone number
BSUID only Match on BSUID, send using recipient, log as "BSUID only"
OTP needed, no phone in webhook Use a verified number from your records (SMS) or an in-app passkey
Number needed for delivery or KYC Ask with REQUEST_CONTACT_INFO, explain why, record consent

If you would rather not do this migration alone, my company, Standing, builds WhatsApp chatbots and business messaging integrations as an official Meta Tech Partner, and this kind of rework is part of that.

The takeaway is short: the phone number is becoming an optional attribute of a WhatsApp customer, not their identity. Give customers your own ID now, and usernames become a routine update rather than a silent break in your records.

Sources & further reading

  1. Meta for Developers: Business-scoped user IDsdevelopers.facebook.com
  2. Infobip Docs: WhatsApp usernames and business-scoped user IDsinfobip.com
  3. Twilio Changelog: WhatsApp usernames and the new BSUID fieldtwilio.com
  4. Twilio Docs: Key concepts for the WhatsApp Business Platformtwilio.com
  5. Vonage Developer: Handling WhatsApp usernames and BSUIDsdeveloper.vonage.com
  6. 360dialog: WhatsApp usernames for business360dialog.com

🤖 Researched and drafted with AI assistance, guided by my editorial standards. Spotted something wrong? Tell me.

Akam Omer
Written by

Akam Omer

IT leader, engineer and security specialist from Erbil with 20+ years across higher education, telecoms, healthcare and government. Founder of BulkSMSIraq, VerifyWay and Kurd.ai.