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

1

not FAIL. the status is OK

2

WhatsApp account does not exist

3

wrong apiKey

4

 'to' is either empty or wrong number format

5

'text' can't be empty

6

WhatsApp error - try again

7

 'to' number is valid, but doesn't have WhatsApp installed