WhatsApp API

Enterprise-level API for $39/month.
Receive and send messages using HTTP requests.

Server status: ... servers online, last check ....

The most multifunctional API at the moment

Send a message to +1 (518) 704-3963 through WhatsApp and test the API.

Created for business

Chat API is designed to create chat bots and integrate WhatsApp with business systems: CRM, ERP or a website.

Chat API is already used for many projects: sending and reading messages from the CRM-system, recording in the beauty salon, sending details of the vacancy or chat-bot with promotional codes.

API for developers

Create a chat bot in a couple of hours or integrate into 6,000 dialogs per day in PHP, JavaScript, Google Docs, Python, Java, C# or even VBA.

The official closed API WhatsApp WEB under the hood works stably and does not fall when you update WhatsApp - this is our main difference from other solutions.

Guides for building a Whatsapp bot on PHP or on Python

Send a message

To a phone number connected to WhatsApp or to a group chat.

API Docs
Get an API key

$data = [
    'phone' => '79995253422', // Receivers phone
    'body' => 'Hello, Andrew!', // Message
];
$json = json_encode($data); // Encode data to JSON
// URL for request POST /message
$url = 'https://foo.chat-api.com/message?token=83763g87x';
// Make a POST request
$options = stream_context_create(['http' => [
        'method'  => 'POST',
        'header'  => 'Content-type: application/json',
        'content' => $json
    ]
]);
// Send a request
$result = file_get_contents($url, false, $options);
var request = require('request'); //bash: npm install request
// URL for request POST /message
var url = 'https://foo.chat-api.com/message?token=83763g87x';
var data = {
    phone: '79995253422', // Receivers phone
    body: 'Hello, Andrew!', // Сообщение
};
// Send a request
request({
    url: url,
    method: "POST",
    json: data
});
// URL for request POST /message
var url = 'https://foo.chat-api.com/message?token=83763g87x';
var data = {
    phone: '79995253422', // Receivers phone
    body: 'Hello, Andrew!', // Message
};
// Send a request
$.ajax(url, {
    data : JSON.stringify(data),
    contentType : 'application/json',
    type : 'POST'
});
curl \
-d '{"phone": "79995253422","body": "Hello, Andrew!"}' \ # Phone and message
-H "Content-Type: application/json" \ # Headers
-X POST \ # Type = POST
"https://foo.chat-api.com/message?token=83763g87x" # URL for request POST /message

Read messages

History of WhatsApp conversations in personal and group chats, including before connecting the API.

API Docs
Get an API key

// URL for request GET /messages
$url = 'https://foo.chat-api.com/messages?token=83763g87x';
$result = file_get_contents($url); // Send a request
$data = json_decode($result, 1); // Parse JSON
foreach($data['messages'] as $message){ // Echo every message
    echo "Sender:".$message['author']."<br>";
    echo "Message: ".$message['body']."<br>";
}
var request = require('request');// npm install request
var url = 'https://foo.chat-api.com/messages?token=83763g87x';
request(url, function (error, response, body) { // Make a GET request
    if (error) return console.error('HTTP Error', error);
    // Parse a response
    var data = JSON.parse(body);
    // For each message
    for (var i = 0; i < data.messages.length; i++) {
        var message = data.messages[i];
        console.log(message.author + ': ' + message.body); //Send it to console
    }
});
var url = 'https://foo.chat-api.com/messages?token=83763g87x';
$.get(url, function (data) { // Make a GET request
    for (var i = 0; i < data.messages.length; i++) { // For each message
        var message = data.messages[i];
        console.log(message.author + ': ' + message.body); //Send it to console
    }
});
# Just a GET request
curl "https://foo.chat-api.com/message?token=83763g87x"

Set a Webhook

Receive notifications about personal and group messages through incoming http requests to your server. This is the main function for creating a chatbot.

API Docs
Get an API key

// First of all - set a webhook to URL like http://your_website.com/my_webhook_url.php

// Parse a webhook data
$data = json_decode(file_get_contents('php://input'), true);
foreach($data['messages'] as $message){ // Echo every message
    // Handle every message here
    // Add to the database or generate a response
}
// First of all - set a webhook to URL like http://your_website.com/my_webhook_url

// Require Express JS и Body Parser for JSON POST acceptance
var app = require('express')();
var bodyParser = require('body-parser');
app.use(bodyParser.json());

// Handle POST request
app.post('/my_webhook_url', function (req, res) {
    var data = req.body; // New messages in the "body" variable
    for (var i = 0; i < data.messages.length; i++) { // For each message
        var message = data.messages[i];
        console.log(message.author + ': ' + message.body); //Send it to console
    }
    res.send('Ok'); //Response does not matter
});

app.listen(80);

Price and sign up

Free for 3 days, then $39/month or $390/year for a WhatsApp account.
The price includes technical support and 6000+ messages per day.

Sign up now

If you need demo for more than 3 days, more than 5 accounts, then contact us.

What our customers say

Trusted by thousands of developers

Ribhu Omni-channel for hotels

Good UI and self serviceable (can create an instance from scratch and pay from my card and get running with WhatsApp. No need to email anyone and all the steps are automated. This is great!)

Gonzalo Chatbot developer

It’s good. The API works fast, whatsapp’s messages arrive in seconds.

João Ignácio Software Architect and Development Manager

My consensus is that the service is great, always on the air and the support meets whenever we need it. Something very good is that several of my requests for both problems and improvements have been taken into account and implemented where possible.

Jeff Internet Technology University

It is good and stable! There could be more opportunities for collaboration. Currently it is one-side API, but it has potential for more.

WhatsApp API SDKs

You can configure the SDK or generate other SDKs in 30+ programming languages: Chat API SDK generator.

Chat API - a service for programmers!

But, if you do not have a programmer, then we offer the creation of chatbot and turnkey integration.