Send Message
You can send a message to the following recipients:
- Someone in your contact list.
- Someone which is not in your contact list.
- A group you are a participant in.
Settings:
URL |
https://api.99digital.co.il/whatsapp/sendMessage |
Method |
POST |
Body:
Parameter |
Description / Example |
apiKey |
Your API key for the service |
from |
your WhatsApp account. international number without +. for example: 972771234567 |
to |
This is the chat ID to send your message to. To send a private message: 972501234567 To send for a group: 9725001234567-157483929384 |
text |
your message goes here \n for new line *text* for bold _text_ for italic ~text~ for strikethrough |
Response:
{
"status": "OK",
"unique": "65dfd4r4dref34rdfxd34r",
"text": "your message",
"timestamp": 1600115719,
"from": "972507654321",
"to": "972501234567",
"reason": 1
}
Response-Explain:
Parameter |
Description |
||||||||||||||
status |
OK or FAIL |
||||||||||||||
unique |
unique ID for any message |
||||||||||||||
text |
the text you sent |
||||||||||||||
timestamp |
time stamp |
||||||||||||||
from |
your WhatsApp account |
||||||||||||||
to |
the chat that the message was sent to |
||||||||||||||
reason |
'reason' is the status explanation in case of FAIL
|