Skip to main content
A quoted reply attaches a 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 a context field with the message_id of the message you want to quote:
{
  "messaging_product": "whatsapp",
  "to": "919959623255",
  "type": "text",
  "context": {
    "message_id": "wamid.HBgMOTE5OTU5NjIzMjU1FQIAERgSMURCRTFEOUZCMkU4MTZDMzIyAA=="
  },
  "text": {
    "body": "Yes, I can help you with that!"
  }
}
What the recipient sees:
┌──────────────────────────────┐
│ 💬 "Hi, I need help with..." │  ← quoted original message
└──────────────────────────────┘
Yes, I can help you with that!
The context field works with any message type — text, image, document, interactive, etc. The message type and context are independent.

Frequently asked

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.
It links your outgoing message to a previous message by its wamid. WhatsApp renders the linked message as a quote above your reply.
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).
Yes. The context field works on any outgoing message type — text, image, document, interactive, etc.

Gotchas & common mistakes

  • context is separate from type — adding context does not change the message type. A text message with context is still a text message; it just shows a quote above it.
  • Expired or unknown message_id — if the wamid does not match a message in the conversation, the message sends without the quote block.
  • Quoting vs replying — this is a visual quote only. It does not create a thread or change who receives the message.