WasenderApi - Low Cost WhatsApp API for Developers Send Quoted Message - API Documentation - WasenderApi - Low Cost WhatsApp API for Developers
WasenderApi API

API Documentation

WasenderApi WhatsApp API

Send Quoted Message

Messages

POST/api/send-message

Sends a message that quotes or replies to a previous message. This is useful for creating conversational context.

Send Quoted Messages

Use this endpoint to send a message in reply to a previously sent message. To do this, you must provide the replyTo parameter with the msgId of the message you wish to quote. The msgId is returned in the success response of any message sending request. You can quote any type of message (text, image, etc.) by including the replyTo parameter alongside the content of your new message.

Parameters

NameTypeRequiredDescription
tostringYesRecipient phone number in E.164 format or, Group JID, or Community Channel JID.
textstringNoThe text content of the message. Required if no media/contact/location is sent.
replyTointegerNoThe msgId of the message to reply to. The msgId is returned in the success response of any message sending request.
imageUrlstringNoURL of the image to send.
videoUrlstringNoURL of the video to send.
documentUrlstringNoURL of the document to send.
audioUrlstringNoURL of the audio file to send (sent as voice note).
stickerUrlstringNoURL of the sticker (.webp) to send.
contactobjectNoContact card object.
locationobjectNoLocation object.

Code Examples

curl -X POST "https://www.wasenderapi.com/api/send-message" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+1234567890",
    "text": "This is a reply to the previous message.",
    "replyTo": 12345
  }'

Response Examples

{
  "success": true,
  "data": {
    "msgId": 100000,
    "jid": "+123456789",
    "status": "in_progress"
  }
}