context block to any outgoing message that references a previous
message by its message_id (wamid). WhatsApp shows the original message in a grey quoted box
above the new reply — exactly like manually swiping to reply in WhatsApp.
Sending a quoted reply
Add acontext field with the message_id of the message you want to quote:
context field works with any message type — text, image, document, interactive, etc.
The message type and context are independent.
Frequently asked
How do I reply to a specific message on WhatsApp API?
How do I reply to a specific message on WhatsApp API?
Add a
context object to your message with message_id set to the wamid of the message you
want to quote. WhatsApp shows the original message in a grey box above your reply.What is the context field in the WhatsApp API?
What is the context field in the WhatsApp API?
It links your outgoing message to a previous message by its wamid. WhatsApp renders the
linked message as a quote above your reply.
Where do I get the message_id to quote?
Where do I get the message_id to quote?
From the API response when a message was sent (
messages[0].id), or from the webhook
payload when a message was received (messages[0].id).Can I quote any message type with context?
Can I quote any message type with context?
Yes. The
context field works on any outgoing message type — text, image, document,
interactive, etc.
