WhatsApp API integration: Connect WhatsApp to the systems you already use.
Use SAMWAD’s WhatsApp API and webhooks to send order updates, reminders and alerts from your own software, add contacts, trigger campaigns and receive replies. Or connect your store, Google Sheets or CRM without writing code.
POST https://www.app.samwad.tech/api/wpbox/sendtemplatemessage
{
"token": "YOUR_API_KEY",
"phone": "919800000210",
"template_name": "order_shipped",
"template_language": "en",
"components": [{ "type": "body",
"parameters": [{ "type": "text", "text": "#4821" }] }]
}
The basics
What is WhatsApp API integration?
Your store, CRM and booking system already know when something happens. Integration lets them tell the customer on WhatsApp.
- WhatsApp API integration
- WhatsApp API integration connects a business’s own software to WhatsApp through the WhatsApp Business API. It lets systems like a store, CRM or booking tool send WhatsApp messages automatically, such as order updates and reminders, and receive customer replies, without anyone typing them by hand.
Three ways to connect SAMWAD
REST API
Send messages and templates, manage contacts and groups, and trigger campaigns from your own code.
Webhooks
Get incoming messages and delivery updates sent to your system as they happen.
No-code integrations
Connect Shopify, WooCommerce, Google Sheets, CRMs and Zapier without writing code.
The API
What you can do with the SAMWAD API.
The same contacts, templates and campaigns your team uses in SAMWAD, available to your own software.
- Template messages to opted-in customers, any time
- Text, images and buttons inside the 24-hour window
- Personal details in each message
- List your templates
- See each one’s category and status
- Use approved templates in your messages
- Create or update contacts
- Add custom fields like email or city
- Put contacts into groups
- List your campaigns
- Trigger an API campaign for a contact
- Pass in personal details for the message
- Fetch conversations
- Read the messages in a chat
- Use them in your own tools
- Incoming customer messages
- Delivery updates
- Sent to your system in real time
How it works
Integrate WhatsApp in four steps.
Get your API key
Create an API key in the API section of your SAMWAD dashboard.
- API key from Dashboard → API
- Developer docs for every endpoint
- Our team can help you get started
Send contacts in
Add or update contacts from your website, CRM or app, with custom fields and groups.
- Create or update a contact
- Custom fields like email or city
- Add them to groups for campaigns
# Add a contact to a group
POST /api/wpbox/makeContact
{
"token": "YOUR_API_KEY",
"phone": "919800000210",
"name": "Priya Shah",
"groups": "Website leads",
"custom": { "city": "Pune" }
}
Receive messages and updates
Webhooks send incoming messages and delivery updates to your system.
- Customer replies in real time
- Delivery updates
- Act on them in your own tools
# Simplified example: a customer reply sent to your webhook
{
"from": "919800000210",
"text": "Can I change the delivery address?"
}
Send messages from your system
When something happens, your system sends an approved template.
- Order updates and payment reminders
- Appointment reminders and alerts
- Or trigger an API campaign
# When an order ships, send the template
POST /api/wpbox/sendtemplatemessage
{
"template_name": "order_shipped",
"phone": "919800000210", …
}
→ 200 OK
Use cases
What businesses automate with the WhatsApp API.
Order updates without manual work.
- Order confirmed, shipped and delivered
- Cash on delivery confirmation
- Abandoned cart reminders
- Order shippedYour storeEvent
- SAMWAD APITemplate messageAPI call
- WhatsAppHi Priya, your order #4821 has shipped and will arrive by Friday.Delivered
Payment reminders and receipts.
- Payment due reminders
- Payment received confirmations
- Failed payment follow-ups
- Payment duePayment systemEvent
- SAMWAD APITemplate messageAPI call
- WhatsAppHi Rahul, your payment of ₹2,499 is due on 15 Nov. Pay securely here.Delivered
Fewer no-shows.
- Booking confirmations
- Reminders the day before
- Reschedule links
- Appointment bookedBooking toolEvent
- SAMWAD APITemplate messageAPI call
- WhatsAppHi Meera, your appointment is confirmed for Tue 12 Nov, 11:30 am.Delivered
Welcome every new lead on WhatsApp.
- Website form submitted
- Contact added to SAMWAD with its source
- Welcome message or journey starts
- New leadWebsite formEvent
- SAMWAD APITemplate messageAPI call
- WhatsAppHi Arjun, thanks for your enquiry! Here’s our brochure.Delivered
One-time passwords on WhatsApp.
- Authentication templates
- Sent from your app when a code is requested
- Works alongside SMS
- Login requestedYour appEvent
- SAMWAD APITemplate messageAPI call
- WhatsApp123456 is your verification code. Don’t share it with anyone.Delivered
Integrations
Connect without writing code.
Ready-made connections for the tools most businesses already use. See all integrations →
For developers
Everything you need to start building.
Developer documentation
Endpoints for messages, templates, contacts, groups and campaigns, with request and response examples.
Read the docs →Your API key
Create and manage API keys from the API section of your SAMWAD dashboard.
Log in to SAMWAD →Pricing
Start building on SAMWAD.
Our team helps you pick the right plan and sets everything up with you. Meta’s WhatsApp charges are passed through at cost, with no markup.
FAQ
WhatsApp API integration FAQs
Planning an integration? Our team can walk your developers through it.
Talk to our teamWhat is WhatsApp API integration?
It connects your own software, such as a store, CRM or booking system, to WhatsApp through the WhatsApp Business API, so it can send WhatsApp messages and receive replies automatically.
Do I need my own Meta developer app?
No. SAMWAD runs on the official WhatsApp Business API and handles the connection to Meta. Your software talks to SAMWAD’s API.
How do I authenticate?
Create an API key in the API section of your SAMWAD dashboard and send it with each request. The developer documentation shows the details.
Can I send messages to anyone, at any time?
You can send approved template messages to customers who have opted in, at any time. Free-form messages, such as text with an image or buttons, can be sent within 24 hours of the customer’s last message.
Do you support webhooks?
Yes. Webhooks send incoming customer messages and delivery updates to your system in real time.
Can I connect without code?
Yes. Shopify and WooCommerce connect through Samwad Shop, and Google Sheets, CRMs and Zapier connect without writing code.
Can I trigger campaigns through the API?
Yes. You can list your campaigns and trigger an API campaign for a contact, passing in the details for the message.
Where is the API documentation?
In the SAMWAD developer documentation, which covers authentication, messages, templates, contacts and campaigns.
Can I use SAMWAD with ChatGPT or Claude?
Yes. The SAMWAD MCP connector lets ChatGPT and Claude manage contacts, templates, journeys and campaigns in your account.
Get started
Connect WhatsApp to your systems.
Start a free trial, create your API key and send your first message from your own software.
Start free trialFor enterprises
Run WhatsApp at scale, on your terms.
Multiple numbers, on-prem or VPC AI, custom integrations and a priority SLA.
Book a live demo