# WhatsApp usernames and BSUIDs: what changes in your integration

> WhatsApp webhooks can now omit the phone number. How to read and send to a business-scoped user ID (BSUID) and migrate contact tables keyed on phone.

Published 2026-11-03. Z-API Omni team.

WhatsApp now identifies each user to your business with a business-scoped user ID (BSUID) in the `user_id` field. Once users adopt usernames, the phone number can be missing from your webhooks. Meta makes BSUID support "required for all partners and directly-integrated businesses", and extends the requirement to Click-to-WhatsApp advertisers ([Meta business-scoped user IDs page, accessed 2026-11-03](https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids)). Any contact table keyed only on the phone number or `wa_id` needs a second key. The page's changelog runs to October 23, 2026.

## What a BSUID is and how far it reaches

A BSUID identifies one WhatsApp user in relation to one business portfolio. Meta generates it automatically. It starts with the user's ISO 3166 alpha-2 country code and a period, followed by up to 128 alphanumeric characters, as in `US.13491208655302741918`.

The scope is the business portfolio. Any business phone number in the same portfolio can message that BSUID. Meta states that sends from "a phone number owned by a different portfolio will fail."

Managed businesses can ask their Meta contact to enroll several portfolios in a parent BSUID account. Enrolled portfolios share a parent ID with `ENT` after the country code, such as `US.ENT.11815799212886844830`. Send the full value. Meta says that changing or dropping any part of it makes the request fail. Parent BSUIDs don't work for block and unblock (changelog of May 4, 2026).

A BSUID is not permanent. It is "regenerated if a user changes their phone number", and that change triggers a system messages webhook.

| Field | Where it appears | What it holds |
|---|---|---|
| `contacts[].user_id` | Messages and status webhooks | The user's BSUID |
| `contacts[].parent_user_id` | Messages webhooks, enrolled portfolios | The parent BSUID |
| `messages[].from_user_id` | Incoming messages | The sender's BSUID |
| `messages[].from_parent_user_id` | Incoming messages, enrolled portfolios | The sender's parent BSUID |
| `statuses[].recipient_user_id` | Status webhooks | The recipient's BSUID |
| `contacts[].profile.username` | Messages webhooks, when the user has one | The user's username |

Failed status webhooks carry no `contacts` block at all, so read the recipient from `statuses[].recipient_user_id` there. The [status webhooks guide](/academy/articles/whatsapp-message-status-webhooks-sent-delivered-read-failed/) covers the rest of that payload.

## When the phone number is left out

The `user_id` field is in messages webhooks whether or not the user has a username. The phone number is the part that can go missing. Meta leaves it out "unless you have interacted with the user before." It is included when any one of these holds.

1. You messaged or called the user's phone number in the last 30 days.
2. You received a message or call from that number in the last 30 days.
3. The user is in your contact book.

Meta checks these conditions per business phone number. A user who talks to your support number may still arrive without a phone number on your sales number.

The contact book is hosted by Meta and scoped to the portfolio. It records a user's phone number and BSUID after an interaction that happens after launch. Meta then adds the phone number to that user's webhook payloads. The Contact Book API can check an entry (a read-only `present` boolean added on August 24, 2026) and delete one.

Meta's migration notes add that phone data is kept for at most 30 days. A user you last spoke to months ago can then look like a new thread.

Here is Meta's sample of an incoming text from a user with a username. The message has no `from`, and the contact has no `wa_id`.

```json
{
  "object": "whatsapp_business_account",
  "entry": [
    {
      "id": "102290129340398",
      "changes": [
        {
          "value": {
            "messaging_product": "whatsapp",
            "metadata": {
              "display_phone_number": "15550783881",
              "phone_number_id": "106540352242922"
            },
            "contacts": [
              {
                "profile": {
                  "name": "Sheena Nelson",
                  "username": "realsheenanelson"
                },
                "user_id": "US.13491208655302741918",
                "parent_user_id": "US.ENT.11815799212886844830"
              }
            ],
            "messages": [
              {
                "from_user_id": "US.13491208655302741918",
                "from_parent_user_id": "US.ENT.11815799212886844830",
                "id": "wamid.HBgLMTY1MDM4Nzk0MzkVAgASGBQzQTRBNjU5OUFFRTAzODEwMTQ0RgA=",
                "timestamp": "1749416383",
                "type": "text",
                "text": {
                  "body": "Does it come in another color?"
                }
              }
            ]
          },
          "field": "messages"
        }
      ]
    }
  ]
}
```

Code that reads `messages[0].from` gets `undefined` here. Read `from_user_id` first and treat `from` as optional.

## Sending a message to a BSUID

Put the BSUID in the `recipient` field. The phone number still goes in `to`. If you send both, Meta says "`to` (phone number) will take precedence." Sending to BSUIDs has worked since July 2026, per the changelog entry of June 29, 2026.

The request below wraps Meta's "Using templates" body in a curl call. The version (v26.0) and the shell variables are ours.

```bash
curl "https://graph.facebook.com/v26.0/$PHONE_NUMBER_ID/messages" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "messaging_product": "whatsapp",
    "recipient_type": "individual",
    "recipient": "US.13491208655302741918",
    "type": "template",
    "template": {
      "name": "YOUR_TEMPLATE_NAME",
      "language": { "code": "en_US" }
    }
  }'
```

In the response, `contacts[0].input` and `contacts[0].user_id` both hold the BSUID, there is no `wa_id`, and `messages[0].id` holds the message ID. That ID means the API accepted the message. Delivery shows up later in a status webhook.

BSUIDs work for "any type of message except for one-tap, zero-tap, and copy code authentication templates." Those sends return error 131062, "recipients are not supported for this message." This code appears on the BSUID page only, not on Meta's general error codes page. For OTP flows you still need the phone number, as described in [authentication templates with copy code](/academy/articles/whatsapp-authentication-templates-otp-copy-code/). Call permissions also accept a BSUID, through `GET /<BUSINESS_PHONE_NUMBER_ID>/call_permissions?recipient=<BSUID>`.

## Usernames for users and for businesses

Each user can set one optional username and change it later. It arrives in `contacts[].profile.username`. Meta says only that usernames roll out to users gradually during 2026, and gives no date for full coverage.

Businesses can claim usernames too. Reservations and claiming opened on June 29, 2026. The rules on Meta's page are these.

| Rule | Value |
|---|---|
| Length | 3 to 35 characters |
| Allowed characters | English letters, digits, `.` and `_`, with at least one letter |
| Forbidden | Starting or ending with a period, ending in a domain suffix |
| Changes | 2 per business phone number in any rolling 14-day period (10 for reserved usernames) |
| Phone number | Still visible; a username does not hide it |

Status changes arrive on the `business_username_updates` webhook. Since September 15, 2026, it carries a `context` field, set to `revoked` when Meta revokes a username. On this endpoint, error 130429 with subcode 2655131 means "Username changed too many times", not throughput. 147005 means a transfer is required, so resend with `transfer_action: force_transfer`. Since November 5, 2026, 147006 means the number is also used with the WhatsApp Business app, and 147007 means a different username is already reserved. The full API is in [WhatsApp business username API](/academy/articles/whatsapp-business-username-api/).

## Identity changes you must handle

Two system messages tell you an identity moved. `user_changed_number` arrives when a user changes phone number. Its body reads "User A changed from <OLD_PHONE_NUMBER> to <NEW_PHONE_NUMBER>." It carries the new `user_id` and the `previous_user_id`, and `wa_id` may be missing. Meta fixed those previous-identifier fields on August 11, 2026.

`user_changed_user_id` arrives when the BSUID changes but no phone number can be shared. In both cases, look up the row by `previous_user_id` and update it. Don't insert a new contact.

## What breaks in a contact table keyed on phone

A table keyed on the phone number or `wa_id` has no key for the row when a username user writes in and none of the three conditions holds. The same person also appears under different BSUIDs in different portfolios, and under a new BSUID after a number change. Both follow from Meta's rules above, though the page doesn't discuss table design.

Meta's migration section lists these steps, paraphrased.

1. Support BSUIDs now, since you can't control whether a user adopts a username.
2. Store `user_id` next to `wa_id`, and handle webhooks with no `wa_id` or `from` and both identity-change messages.
3. Update your CRM and downstream systems, and consider giving the CRM access across portfolios.
4. Optionally, add a phone number request flow, check which portfolio owns each number before sending, and test with the App Dashboard webhook test tool.

A Postgres table that follows those steps keys on portfolio plus BSUID and keeps the phone number nullable. This schema is our suggestion.

```sql
CREATE TABLE whatsapp_contacts (
  id               bigserial PRIMARY KEY,
  portfolio_id     text NOT NULL,
  user_id          text NOT NULL,  -- BSUID, e.g. US.13491208655302741918
  parent_user_id   text,           -- only for enrolled portfolios
  wa_id            text,           -- null until Meta shares the phone number
  username         text,
  previous_user_id text,           -- from user_changed_number / user_changed_user_id
  UNIQUE (portfolio_id, user_id)
);
CREATE INDEX whatsapp_contacts_wa_id ON whatsapp_contacts (wa_id);
```

When `wa_id` does arrive, normalize it before matching it against other systems, as covered in [E.164 phone number normalization](/academy/articles/whatsapp-phone-number-format-e164-normalization/). Groups on the QR connection have their own identifier problem with `@lid`, explained in [LID vs JID group identifiers](/academy/articles/whatsapp-lid-vs-jid-group-identifiers/). For the rest of the schema, see [WhatsApp conversation storage](/academy/articles/whatsapp-conversation-storage-database-schema/).

## Asking the user for their phone number

When a flow needs the phone number, ask for it. Add a `REQUEST_CONTACT_INFO` button to a utility or marketing template, or send it as an interactive message. The contacts webhook that follows has `origin` set to `contact_request` or `other`, and `other` also carries a vCard. Meta's page doesn't say whether `wa_id` will ever disappear for users without a username, so keep both columns.

*Z-API Omni team*
