Skip to content

SystemIncomingMessage

Defined in: src/types/webhooks.ts:287

A system message, for example when a user changes their phone number or their BSUID changes. system.type is user_changed_number or user_changed_user_id; handle both. Other values may appear as Meta adds them.

  • IncomingMessageBase

optional context?: WebhookMessageContext

Defined in: src/types/webhooks.ts:115

Reply context when this message references a previous message.

IncomingMessageBase.context


optional errors?: WebhookMessageError[]

Defined in: src/types/webhooks.ts:119

Errors Meta attached to the message, e.g. on unsupported messages.

IncomingMessageBase.errors


from: string

Defined in: src/types/webhooks.ts:103

The wa_id of the sender. Meta may omit it when the sender has enabled usernames and no phone number can be shared; use from_user_id then.

IncomingMessageBase.from


optional from_parent_user_id?: string

Defined in: src/types/webhooks.ts:107

The sender’s parent BSUID, only present when parent BSUIDs are enabled.

IncomingMessageBase.from_parent_user_id


optional from_user_id?: string

Defined in: src/types/webhooks.ts:105

The sender’s business-scoped user ID (BSUID).

IncomingMessageBase.from_user_id


optional group_id?: string

Defined in: src/types/webhooks.ts:109

The group ID, when the message was sent in a group.

IncomingMessageBase.group_id


id: string

Defined in: src/types/webhooks.ts:111

The WhatsApp message ID (WAMID) of this message.

IncomingMessageBase.id


optional referral?: WebhookMessageReferral

Defined in: src/types/webhooks.ts:117

Click to WhatsApp ad attribution, only present when sent via an ad.

IncomingMessageBase.referral


system: object

Defined in: src/types/webhooks.ts:289

optional body?: string

Human-readable description of the change.

optional parent_user_id?: string

The user’s new parent BSUID, when parent BSUIDs are enabled.

optional previous_parent_user_id?: string

The parent BSUID the user had before the change.

optional previous_user_id?: string

The BSUID the user had before the change.

type: string

The system event type, e.g. user_changed_number or user_changed_user_id.

optional user_id?: string

The user’s new BSUID.

optional wa_id?: string

The user’s new phone number; omitted when it cannot be shared.


timestamp: string

Defined in: src/types/webhooks.ts:113

Unix epoch seconds (as a string) when the message was sent.

IncomingMessageBase.timestamp


type: "system"

Defined in: src/types/webhooks.ts:288

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.