Experimental Whatsapp messaging based on the server-side communication bridge.
This is experimental project, so do the development with a caution.
Register a new number before starting to communicate by this service
Request: POST /wa/session/create
number
- the string phone number with area code without "+" eg: 6285716116666
{
"number": "6285716116666" <string|required>
}
Checking the phone number if has been registered to the service
Request: POST /wa/session/check
number
- the string phone number with area code without "+" eg: 6285716116666
{
"number": "6285716116666" <string|required>
}
Sending text message
Request: POST /wa/send/text
from
the sender phone numberto
receiver phone numbermessage
the string message to send
{
"from": "6285716116666", <string|required>
"to": "6285716117777", <string|required>
"message": "Hello from whatsapp"
}
Terminate existing socket connection
Request: POST /wa/connection/terminate
number
the phone number to terminate
{
"number": "6285716116666" <string|required>
}