Sending View-Once Messages
One-time message
Example request
curl --request POST \
--url https://gate.whapi.cloud/messages/image \
--header 'accept: application/json' \
--header 'authorization: Bearer {Your_Token}' \
--header 'content-type: application/json' \
--data '{
"to": "919984351847",
"media": "https://upload.wikimedia.org/wikipedia/commons/3/3f/JPEG_example_flower.jpg",
"caption": "Hello, this is a one-time message.",
"view_once": true
}'
Important notes
Last updated