WebhookContact
Defined in: src/types/webhooks.ts:31
A contact profile echoed alongside incoming messages and message statuses.
Meta may omit wa_id when the user has enabled WhatsApp usernames and no
phone number can be shared; it is still typed string here so existing code
keeps compiling, so check it at runtime. user_id (the business-scoped user
ID, BSUID) is the stable identifier.
https://developers.facebook.com/documentation/business-messaging/whatsapp/business-scoped-user-ids
Properties
Section titled “Properties”identity_key_hash?
Section titled “identity_key_hash?”
optionalidentity_key_hash?:string
Defined in: src/types/webhooks.ts:39
Identity key hash, only present when the identity change check is enabled.
parent_user_id?
Section titled “parent_user_id?”
optionalparent_user_id?:string
Defined in: src/types/webhooks.ts:37
The contact’s parent BSUID, only present when parent BSUIDs are enabled.
profile?
Section titled “profile?”
optionalprofile?:object
Defined in: src/types/webhooks.ts:41
The contact’s profile, when provided.
optionalname?:string
username?
Section titled “username?”
optionalusername?:string
The user’s WhatsApp username, only present when the user enabled usernames.
user_id?
Section titled “user_id?”
optionaluser_id?:string
Defined in: src/types/webhooks.ts:35
The contact’s business-scoped user ID (BSUID), e.g. US.13491208655302741918.
wa_id:
string
Defined in: src/types/webhooks.ts:33
The WhatsApp ID (wa_id) of the contact. May be absent for username users.
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.