Overview
To reply to an existing message, simply include themessageId attribute in the body of any send endpoint (text, image, audio, etc). The messageId is the ID of the original message you want to reply to.
You can get the messageId in two ways:
- Sent messages — returned in the API response when sending
- Received messages — received via webhook
Example
Replying to a message with text using the/send-text endpoint:
/send-image, /send-audio, /send-video, /send-document, /send-sticker, and /send-contact as well — just add the messageId field.
The response structure is identical to Z-API. Your existing code that processes these returns will continue working without changes.