Send a message to a new or existing chat.
sendMessage
The message will be added to the queue for sending and delivered even if the phone is disconnected from the Internet or authorization is not passed. Only one of two parameters is needed to determine the destination - chatId or phone.
- api
- Message
- sendMessage
Request test
Request URL
https://api.4whats.net/sendMessage
Parameters
instanceid
|
|
token
|
|
phone
|
A phone number starting with the country code. or the chatId For example: 17472822486 or 17472822486 @c.us |
body
|
Message text, UTF-8 or UTF-16 string with emoji 🍏. Can be used with mentionedPhones, example: this text for @78005553535 |
{ "sent": true, "id": "[email protected]_DF38E6A25B42CC8CCE57EC40F", "from": "[email protected]", "to": "[email protected]", "timestamp": 1641495963, "type": "chat", "queueNumber": 399955 }
Request samples
Note : don't forget to URL encode your query
params like base64 or utf-8
All rights reserved © 2021 - 2024.