Interface ExtendedMessageReceivedPayload

Extended message.received payload returned only by the opt-in groups parser.

interface ExtendedMessageReceivedPayload {
    agent_id: string;
    ai_handoff?: MessageReceivedHandoff;
    assets?: MessageReceivedMediaAsset[];
    channel_id: string;
    contact_id: null | string;
    contact_reference: null | string;
    conversation_id: null | string;
    ctwa_clid?: null | string;
    customer_reference: null | string;
    edit?: null | MessageReceivedEdit;
    from: null | string;
    group_id?: null | string;
    identity_key_hash?: null | string;
    interactive?: null | MessageReceivedInteractive;
    location?: null | MessageReceivedLocation;
    media?: null | MessageReceivedMediaAsset;
    message_id: string;
    messages?: ExtendedMessageReceivedItem[];
    metadata: null | Record<string, unknown>;
    order?: null | MessageReceivedOrder;
    organization_id: string;
    parent_user_id?: null | string;
    participant?: null | string;
    referral?: null | MessageReceivedReferral;
    referred_product?: null | MessageReceivedReferredProduct;
    revoke?: null | MessageReceivedRevoke;
    sender_participant?: null | string;
    text: null | string;
    type?: null | ExtendedMessageReceivedType;
    unsupported?: null | MessageReceivedUnsupported;
    user_id?: null | string;
    username?: null | string;
}

Hierarchy

Properties

agent_id: string

Current Wabery handoff state for this conversation/contact.

Flattened media assets from messages.

url is a short-lived Wabery signed URL. expires_at is the asset retention deadline: 24 hours on free plans and 7 days on paid plans. This normalized contract is shared by WhatsApp, Instagram, and Messenger. Check status before downloading; failed or expired cache attempts are reported there.

channel_id: string
contact_id: null | string
contact_reference: null | string

Your own id for this contact (the referenceId / externalId set at enrollment). Identical value to MessageReceivedPayload.customer_reference — contact_reference is the canonical name used across all events; customer_reference is kept as an alias.

conversation_id: null | string
ctwa_clid?: null | string
customer_reference: null | string
edit?: null | MessageReceivedEdit

Latest official edit envelope in the batch, if any.

from: null | string

Sender's E.164 phone number when disclosed; WhatsApp usernames may make this null.

group_id?: null | string

Opaque Meta group ID; absent for individual conversations.

identity_key_hash?: null | string
interactive?: null | MessageReceivedInteractive

Latest interactive tap in the batch, if any.

location?: null | MessageReceivedLocation

Latest location in the batch, if any.

Latest media asset in the batch, if any.

message_id: string
metadata: null | Record<string, unknown>
order?: null | MessageReceivedOrder
organization_id: string
parent_user_id?: null | string

Meta parent identity when the WhatsApp username belongs to a linked account.

participant?: null | string
referral?: null | MessageReceivedReferral
referred_product?: null | MessageReceivedReferredProduct
revoke?: null | MessageReceivedRevoke

Latest official revoke envelope in the batch, if any.

sender_participant?: null | string

WhatsApp user ID of the group participant who sent the latest message.

text: null | string

Combined text for backward compatibility. Use messages for typed payloads.

unsupported?: null | MessageReceivedUnsupported

Latest Cloud API unsupported envelope in the batch, if any.

user_id?: null | string

Platform-scoped sender ID, including WhatsApp's business-scoped user ID.

username?: null | string

WhatsApp, Instagram, or Messenger username when Meta supplies one.