NOW WITH AI POWERS 
BeepMate Logo

Send Notifications to WhatsApp Using API

With BeepMate, you can send WhatsApp messages (and files) to your WhatsApp or to a WhatsApp group, using GET or POST calls (RESTful API).

With BeepMate API you can integrate WhatsApp to almost any existing app or server, and to automate notifications to WhatsApp.
1

Activate API

Go to the BeepMate chat and type the API command, it will generate an API key for you.

BeepMate API command in WhatsApp chat generating API key
2

Understand ID and KEY

Using your WhatsApp ID and API key you can send WhatsApp notifications.
The ID is your phone number in international format without the plus sign (e.g., 19291111111 for a US number).

If you wish BeepMate to send to a group instead of your personal chat, use the group’s ID instead of your phone number. Type the GROUPS command to see the ID of the WhatsApp group.
3

Send WhatsApp Message via GET Request

Send a text message using GET use the following URL:

https://beepmate.io/send?key=YOUR_KEY&id=YOUR_ID&msg=MESSAGE

Replace YOUR_KEY and YOUR_ID with the details you received from the API command, and MESSAGE with the notification you wish to send.

Tip: You may need to encode special caracters in the MESSAGE part. See URL encoding for more information.
For example, %20 represents a space so if your URL has MESSAGE=Hello%20World it will notify "Hello World" in the notification.
4

Send WhatsApp Message via POST Request

With POST you can send files to WhatsApp. The following examples uses curl command, which is available on Linux and Windows (You may need to install it if it does not exist).

curl -k -X POST -F "file=@/path/somefile.pdf" -F "key=YOUR_KEY" -F "id=YOUR_ID" "https://beepmate.io/send"

Replace YOUR_KEY and YOUR_ID with the details you received from the API command, and change the path and filename to the location and file that you wish to send.

For example:

curl -k -X POST -F "file=@c:\somefile.pdf" -F "key=MyKey" -F "id=19291111111" "https://beepmate.io/send"

Tip: POST call requires submitting form fields, BeepMate supports file form field, as shown in the above example.
Check out BeepMate's GitHub code examples to demonstrate how to send WhatsApp using Python, PHP, Go, Java and more.
Note: To generate a new API key, type the UNAPI command and then the API command again. The old key will no longer work.