WhatsApp API

dominate popular platforms

Drive better customer engagement outcomes

Meet your customers where they already are, on the platform with 2 billion+ users.

Get started

Whatsapp Business API to Send Message

curl --request POST \
  --url https://control.msg91.com/api/v5/whatsapp/whatsapp-outbound-message/ \
  --header 'Authkey: <authkey>' \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '
{"integrated_number":"Intergated WhatsApp Number, with country code","recipient_number":"Mobile Number","content_type":"text","text":"Message Content"}
'
const http = require("https");

const options = {
  "method": "POST",
  "hostname": "control.msg91.com",
  "port": null,
  "path": "/api/v5/whatsapp/whatsapp-outbound-message/",
  "headers": {
    "Authkey": "<authkey>",
    "accept": "application/json",
    "content-type": "application/json"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({
  integrated_number: 'Intergated WhatsApp Number, with country code',
  recipient_number: 'Mobile Number',
  content_type: 'text',
  text: 'Message Content'
}));
req.end();
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://control.msg91.com/api/v5/whatsapp/whatsapp-outbound-message/",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "\n{\"integrated_number\":\"Intergated WhatsApp Number, with country code\",\"recipient_number\":\"Mobile Number\",\"content_type\":\"text\",\"text\":\"Message Content\"}\n",
  CURLOPT_HTTPHEADER => [
    "Authkey: <authkey>",
    "accept: application/json",
    "content-type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://control.msg91.com/api/v5/whatsapp/whatsapp-outbound-message/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["Authkey"] = '<authkey>'
request["accept"] = 'application/json'
request["content-type"] = 'application/json'
request.body = "\n{\"integrated_number\":\"Intergated WhatsApp Number, with country code\",\"recipient_number\":\"Mobile Number\",\"content_type\":\"text\",\"text\":\"Message Content\"}\n"

response = http.request(request)
puts response.read_body
import http.client

conn = http.client.HTTPSConnection("control.msg91.com")

payload = "\n{\"integrated_number\":\"Intergated WhatsApp Number, with country code\",\"recipient_number\":\"Mobile Number\",\"content_type\":\"text\",\"text\":\"Message Content\"}\n"

headers = {
    'Authkey': "<authkey>",
    'accept': "application/json",
    'content-type': "application/json"
    }

conn.request("POST", "/api/v5/whatsapp/whatsapp-outbound-message/", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
Features
feature
Whatsapp ChatBot Automated interactions on the messaging platform, providing instant responses, handling customer inquiries, and performing tasks such as customer support, order tracking,place order and providing information. It enhances customer service efficiency and availability.
feature
Whatsapp Integrations Our WhatsApp Business API integrates seamlessly with numerous platforms, allowing for easy plug-and-play functionality without the need for additional development. Some of the supported platforms include Zoho, Freshworks, WebEngage, MoEngage, CleverTap, Shopify, Wix, Google Sheet, Tally, GIDDH and more.
feature
Zero Charge on Click to WhatsApp Ads Offering free or zero charges on Click-to-WhatsApp Ads means businesses can use these ads without incurring additional costs associated with WhatsApp session charges. This approach allows businesses to send WhatsApp messages from API, providing significant benefits such as no session charges and a budget-friendly option.
feature
Whatsapp Catalogue WhatsApp's catalogue feature lets businesses showcase products and services within the app. It uses whatsapp business api application to serves as a digital storefront, allowing customers to browse, view details, and make inquiries without leaving WhatsApp. Businesses can organize items, include images, prices, and descriptions, and update inventory in real time, making it easier for customers to explore and shop.
feature
Broadcast / Campaign WhatsApp's broadcast lets you send the same message to multiple contacts at once, ideal for updates and announcements. Campaigns, available in the WhatsApp Business API, enable targeted marketing with automated, personalized messages. Both help businesses reach more people efficiently.
feature
Click Counts Click counts indicate how many businesses or customers use a feature - high click counts show its popularity and effectiveness for customer engagement. You can view all click counts for a button either in the analytics section or through your webhook.
feature
Support Base64Send the body in JSON and leave the rest to us. No need to make a URL or upload your file as you can directly send JSON body and it will be converted automatically into Base64 format and sent via WhatsApp.
feature
2-way CommunicationSay hello to go on HELLO. Give your customer the right platform to continue the conversation. Once they reply, they are directly taken to HELLO to start a 2-way communication with your business.
feature
Manage Template Inside PanelCreate and manage your templates right here. No need to switch platforms to create your template. You can create the templates, manage it and check the status of it right here without going on Facebook.
feature
AnalyticsGet graphical insights into your business messages. Analyse and improvise your business messaging with the right metrics. Get a graphical report on the number of messages sent, delivered, conversations and more.
feature
Export LogsGet individual outbound and inbound messages logs. Export the logs for better viewing and insights. Get details of all the outbound and inbound messages and conversations your business had with your customers.

FAQ for Marketing Automation:

  • The WhatsApp Business API is a tool offered by WhatsApp that enables businesses to integrate WhatsApp messaging into their customer service, marketing, and engagement strategies.
  • It is particularly designed for medium and large enterprises to automate interactions and send messages from the official WhatsApp app to customers.
  • Through this API, businesses can enhance customer experiences by enabling chat services on their websites or applications.

  • By integrating AI with WhatsApp Business API, businesses can create automated chatbots that provide instant replies to customer inquiries.
  • AI-based solutions can analyze incoming messages and respond appropriately, increasing efficiency in customer service without the need for human intervention.
  • Popular AI platforms can be integrated with WhatsApp via API to deliver seamless AI-driven chat experiences.

  • WhatsApp Business API does require a subscription or payment depending on the service plan.
  • However, Facebook offers some pricing flexibility for click-to-WhatsApp ads, where businesses may avoid session charges.
  • It's best to review the latest pricing on the official Facebook or WhatsApp developer website.

  • WhatsApp API integration involves setting up the API to work with your website or application.
  • This enables your business to send messages from WhatsApp to users directly on their phones, facilitating real-time engagement.
  • Integration requires a WhatsApp Business account and an MSG91 account for developers to set up.

  • You can integrate WhatsApp Business API with your website to allow customers to reach you via click-to-chat links or automated response buttons.
  • Using HTML, JavaScript, and the API documentation, developers can configure 'Send WhatsApp Message' buttons on a website.
  • Integration can be done through your WhatsApp Business account setup and by following the instructions on the official WhatsApp developer site.

To begin using WhatsApp Business API, you need:

  • Yes, the WhatsApp Business API is ideal for enterprises looking to implement robust customer service and engagement solutions.
  • It provides a scalable solution that can support high message volumes, perfect for enterprises handling multiple customer inquiries daily.
  • Enterprises can also benefit from automated AI chatbots integrated with the API.

  • Yes, MSG91 offers a web-based panel for easy understanding and implementation.
  • The WhatsApp Web API does not have a direct, visual interface like the regular WhatsApp Web. However, messages can be sent and received via API requests programmatically, which developers can configure using code or cloud-hosted solutions.

  • Unlike the WhatsApp app used for personal messaging, the WhatsApp Business API is designed specifically for businesses.
  • The API allows for automated messaging, integration with other software solutions, and bulk messaging while adhering to WhatsApp’s policies.
  • It is intended for use through programmatic integration rather than a direct user interface.

  • Registering your WhatsApp Business Account
  • Securing API credentials from Facebook's developer portal

  • WhatsApp API is highly beneficial for customer service as it enables quick responses and easy follow-up with customers.
  • With AI chatbot integration, businesses can automate frequent queries, freeing up customer service representatives to handle more complex cases.
  • The API supports two-way communication, ensuring customers get real-time updates on their inquiries.

  • Yes, the WhatsApp API can be integrated with various applications, including CRM systems and e-commerce platforms.
  • Developers can set up API calls to trigger messages based on user actions, such as order confirmations, shipping updates, or customer service inquiries.
  • Custom integration solutions can be built for your business needs with the help of a developer.

  • A dedicated business phone number is required for the WhatsApp Business API.
  • This number must not be linked to a personal WhatsApp account; it will be verified and registered through the API setup process on the Facebook developer platform.

Yes, you can manage WhatsApp for sending and receiving messages using MSG91 HELLO (Web-based dashboards developed to provide real-time monitoring of conversations).

  • The WhatsApp API itself is not free for most business functions, as costs may be associated with sending and receiving messages.
  • However, Click-to-WhatsApp ads provide a budget-friendly way to initiate conversations without incurring session charges for specific interactions.
Start building your ideal customer engagement experience
Trusted by 30,000+ global businesses
RazorpayXiaomiUnacademyDream11IndeedIndian OilIxigo