Heybot

Getting Started

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.

Quick Start

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.

Authentication

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

https://api.heybot.cloud/v1/messages

curl https://heybot.cloud/v1/messages \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer {token}"
            

Choose your client

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 is most likely already installed on your machine
curl --version

Making your first API request

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.

https://api.heybot.cloud/v1/messages

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
        }
    }'