# whatsapp.contact.identity_changed

A WhatsApp user changed phone number or Meta regenerated their business-scoped user id (BSUID).

### When it fires

Fires when Meta reports the user under a new phone number (`reason: "user_changed_number"`) or a new BSUID (`user_changed_user_id`, `user_identity_changed` or `user_id_update`).

### Payload notes

`previous` and `current` carry the phone number, BSUID, parent BSUID and username. Use them to re-key records stored against the old value.

### Already applied

Zernio has already moved the inbox conversation and the contact when the event arrives. `conversationId` and `contactId` point at them, or are null when there was none.

### Delivery

Delivery is at-least-once; dedupe on the event `id`.




**Payload for `whatsapp.contact.identity_changed`:**

- **id** (required) `string`: Stable webhook event ID: the dedupe key, also sent as the X-Zernio-Event-Id header and identical on every retry and redelivery. It identifies the event only, never an account or other resource.
- **profiles**: `WebhookProfiles` - See schema definition
- **test** `boolean`: Always true when present: only a sample sent by POST /v1/webhooks/test with an event carries it. Real deliveries never do.
- **event** (required) `string`: No description - one of: whatsapp.contact.identity_changed
- **account** (required) `object`: 
  - **accountId** (required) `string`: No description
  - **profileId** (required) `string`: No description
  - **platform** (required) `string`: No description - one of: whatsapp
  - **username** (required) `string`: No description
  - **displayName** `string,null`: No description
- **reason** (required) `string`: Which Meta signal reported the change. `user_changed_number`: new phone number. `user_changed_user_id` and `user_id_update`: new BSUID. - one of: user_changed_number, user_changed_user_id, user_identity_changed, user_id_update
- **previous** (required): `WhatsAppContactIdentity` - See schema definition
- **current** (required): `WhatsAppContactIdentity` - See schema definition
- **contactId** (required) `string,null`: Zernio contact id matched on the new identity, null when none exists yet.
- **conversationId** (required) `string,null`: Zernio inbox conversation that was re-keyed, null when there was none.
- **changedAt** (required) `string` (date-time): When Meta reported the change.
- **timestamp** (required) `string` (date-time): UTC time at which Zernio generated this event (set once when the event payload is built, before delivery is queued). Retries and redeliveries keep the original value, so it reflects the event, not the delivery attempt.