Everything you need to know to start using the WhatsApp Business API to send/receive messages and run ads that open WhatsApp chats.
WhatsApp Business API (now part of Meta Business Platform) allows businesses to communicate with customers at scale. It provides powerful features for modern business communication.
You need the following to get started with WhatsApp Business API:
There are TWO ways to use the API:
Verify your number via SMS or call. Make sure the number has never been used on WhatsApp before.
Configure your webhook URL and verify token:
Your server endpoint will receive incoming messages and status updates.
Use the following endpoint to send messages:
POST https://graph.facebook.com/v18.0/PHONE_NUMBER_ID/messages
You can send text messages, images, videos, documents, and interactive messages using this endpoint.
When a user sends a message, WhatsApp sends a POST request to your webhook URL with the message data.
Parse the incoming JSON to extract the message content and sender information.
Templates are required for sending messages outside the 24-hour window. Go to Meta Business Manager, create a template, and submit it for approval.
Example: "Hello {{1}}, your order is ready" - Templates can include variables for personalization.
Understanding the conversation window is crucial:
Click-to-WhatsApp Ads on Facebook and Instagram open WhatsApp chats directly. This is a powerful way to generate leads and start conversations.
Create campaigns in Ads Manager with "Messages" objective and choose WhatsApp as the destination.
Build intelligent chatbots using PHP, Node.js, or Python. Automate responses to common questions and create conversation flows.
Example: If a message contains "price", automatically send pricing information.
Frontend (Website) → Backend (PHP API) → WhatsApp Cloud API → User Device
WhatsApp Business API is powerful for customer communication, automation, and marketing. Start with Cloud API, test messages, then scale with automation and ads.
Start using WhatsApp Business API today and transform your customer communication.
Get Started Now