Instance Api
POST Create Instance
https://waclient.com/api/createinstance?access_token=69d3dbbe2022242e91284c48efdeXXXX
Create a new Instance ID
Params
access_token |
69d3dbbe2022242e91284c48efdeXXXX |
POST Get QR Code
https://waclient.com/api/getqrcode?instance_id=609ACF283XXXX&access_token=69d3dbbe2022242e91284c48efdeXXXX
Display QR code to login to Whatsapp web. You can get the results returned via Webhook
Params
instance_id |
609ACF283XXXX |
access_token |
69d3dbbe2022242e91284c48efdeXXXX |
POST Set Receving Webhook
https://waclient.com/api/setwebhook?webhook_url=https://webhook.site/1b25464d6833784f96eef4xxxxxxxxxx&enable=true&instance_id=609ACF283XXXX&access_token=69d3dbbe2022242e91284c48efdeXXXX
Get all return values from Whatsapp. Like connection status, Incoming message, Outgoing message, Disconnected, Change Battery,...
Params
webhook_url |
https://webhook.site/1b25464d6833784f96eef4xxxxxxxxxx |
enable |
true |
instance_id |
609ACF283XXXX |
access_token |
69d3dbbe2022242e91284c48efdeXXXX |
POST Reboot Instance
https://waclient.com/api/reboot?instance_id=609ACF283XXXX&access_token=69d3dbbe2022242e91284c48efdeXXXX
Logout Whatsapp web and do a fresh scan
Params
instance_id |
609ACF283XXXX |
access_token |
69d3dbbe2022242e91284c48efdeXXXX |
POST Reset Instance
https://waclient.com/api/resetinstance?instance_id=609ACF283XXXX&access_token=69d3dbbe2022242e91284c48efdeXXXX
This will logout Whatsapp web, Change Instance ID, Delete all old instance data
Params
instance_id |
609ACF283XXXX |
access_token |
69d3dbbe2022242e91284c48efdeXXXX |
POST Reconnect
https://waclient.com/api/reconnect?instance_id=609ACF283XXXX&access_token=69d3dbbe2022242e91284c48efdeXXXX
Re-initiate connection from app to Whatsapp web when lost connection
Params
instance_id |
609ACF283XXXX |
access_token |
69d3dbbe2022242e91284c48efdeXXXX |
Send Direct Message Api
POST Send Text
https://waclient.com/api/send?number=84933313xxx&type=text&message=test%20message&instance_id=609ACF283XXXX&access_token=69d3dbbe2022242e91284c48efdeXXXX
Send a text message to a phone number through the app
Params
number |
84933313xxx |
type |
text |
message |
test message |
instance_id |
609ACF283XXXX |
access_token |
69d3dbbe2022242e91284c48efdeXXXX |
https://waclient.com/api/send?number=84933313xxx&type=media&message=test%20message&media_url=https://i.pravatar.cc&filename=file_test.jpg&instance_id=609ACF283XXXX&access_token=69d3dbbe2022242e91284c48efdeXXXX
Send a media or file with message to a phone number through the app
Params
number |
84933313xxx |
type |
media |
message |
test message |
media_url |
https://i.pravatar.cc |
filename (Just use for send document) |
file_test.pdf |
instance_id |
609ACF283XXXX |
access_token |
69d3dbbe2022242e91284c48efdeXXXX |
Group Api
POST Send Text Message Group
https://waclient.com/api/sendgroupmsg?group_id=84987694574-1618740914@g.us&type=text&message=test%20message&instance_id=609ACF283XXXX&access_token=69d3dbbe2022242e91284c48efdeXXXX
Send a text message to a group through the app
Params
group_id |
84987694574-1618740914@g.us |
type |
text |
message |
test message |
instance_id |
609ACF283XXXX |
access_token |
69d3dbbe2022242e91284c48efdeXXXX |
https://waclient.com/api/sendgroupmsg?group_id=84987694574-1618740914@g.us&type=media&message=test%20message&media_url=https://i.pravatar.cc&filename=file_test.jpg&instance_id=609ACF283XXXX&access_token=69d3dbbe2022242e91284c48efdeXXXX
Send a media or file with message to a group through the app
Params
group_id |
84987694574-1618740914@g.us |
type |
media |
message |
test message |
media_url |
https://i.pravatar.cc |
filename (Just use for send document) |
file_test.pdf |
instance_id |
609ACF283XXXX |
access_token |
69d3dbbe2022242e91284c48efdeXXXX |