Type Alias ClientMessageRequest
ClientMessageRequest: { biz_opaque_callback_data?: string; context?: { message_id: string }; messaging_product: "whatsapp"; recipient_type: "individual"; to: string;} & { [Type in ClientMessageNames]?: ClientMessage } & (
| { text: Text; type: "text" } | { audio: Audio; type: "audio" } | { document: Document; type: "document" } | { image: Image; type: "image" } | { sticker: Sticker; type: "sticker" } | { type: "video"; video: Video } | { location: Location; type: "location" } | { contacts: Contacts; type: "contacts" } | { interactive: Interactive; type: "interactive" } | { template: Template; type: "template" } | { reaction: Reaction; type: "reaction" })
Type declaration
Optionalbiz_opaque_callback_data?: string
Optionalcontext?: { message_id: string }
messaging_product: "whatsapp"
recipient_type: "individual"
to: string
- { text: Text; type: "text" }
- { audio: Audio; type: "audio" }
- { document: Document; type: "document" }
- { image: Image; type: "image" }
- { sticker: Sticker; type: "sticker" }
- { type: "video"; video: Video }
- { location: Location; type: "location" }
- { contacts: Contacts; type: "contacts" }
- { interactive: Interactive; type: "interactive" }
- { template: Template; type: "template" }
- { reaction: Reaction; type: "reaction" }
An arbitrary 512B string, useful for tracking.
Any app subscribed to the messages webhook field on the WhatsApp Business Account can get this string, as it is included in statuses object within webhook payloads.
Cloud API does not process this field, it just returns it as part of sent/delivered/read message webhooks.