client.messages(). The Java SDK sends instanceId in the URL and instanceToken as X-Instance-Token; neither field is included in the JSON body.
Text
{ code, success, data.message_id } — message accepted/queued.
Dynamic message payloads
UseGenericInstanceRequest for media and interactive payloads:
Returns for other methods
| Method | Return |
|---|---|
sendImage, sendAudio, sendDocument, sendVideo, sendSticker, sendGif, sendLocation, sendContact, sendButtons, sendList, sendLink, sendPoll | envelope { code, success, data.message_id } |
pollVote, react | envelope { code, success, data } with confirmation (details, timestamp, id) |
removeReaction, presence, markRead, edit, delete | envelope { code, success, data.details } |
downloadImage, downloadVideo, downloadAudio, downloadDocument | envelope { code, success, data.mimetype, data.data } |
send(instanceId, path, body, token) | same HTTP contract as the proxied path |
GenericInstanceRequest for media and interactive payloads:
{ code, success, data } with data.mimetype and data.data (base64 or data URL).

