Welcome to the Heybot - WhatsApp API, a bundled APIs to help you enable WhatsApp for your business. The Heybot WhatsApp API is e easy-to-implement solution.
This guide will get you all set up and ready to use the WhatsApp API. We'll cover how to get started using one of our API clients and how to make your first API request. We'll also look at where to go next to find all the information you need to take full advantage of our powerful REST API.
You'll need to authenticate your requests to access any of the endpoints in the WhatsApp API. In this guide, we'll look at how authentication works. Heybot offers Bearer Token Authentication.
Don't commit your token to git repository
Always keep your token safe and reset it if you suspect it has been compromised.
The API never will called from any client (UI - AJAX, JS HTTP, etc) direc
curl https://heybot.cloud/v1/messages \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {token}"
Before making your first API request, you need to pick which API client you will use. In addition to good ol' cURL HTTP requests.
curl --version
After picking your preferred client, you are ready to make your first call to the WhatsApp API. Below, you can see how to send a message request.
curl https://api.heybot.cloud/v1/messages \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {token}" \
-d '{
"toPhoneNumber": "5217772239117",
"type": "text",
"payload": {
"body": "demo",
"linkPreview": false
}
}'