Send WhatsApp Messages via REST API
Built for Developers.
Send messages, images, files, and OTPs to any WhatsApp number via a simple REST API. Integrate in minutes. Scales from side projects to enterprise.
- Send text, images, files, voice & video messages
- Manage groups, channels & contacts
- QR code + pairing code session auth
- Free plan — no credit card required
Free plan · 100 requests/month · No setup fees · Instant access
import requests
url = "https://whatsapp-messaging-bot.p.rapidapi.com/v1/sendText"
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "whatsapp-messaging-bot.p.rapidapi.com",
"Content-Type": "application/json"
}
payload = {
"chatId": "1234567890",
"text": "Hello! 👋",
"session": "default"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())import requests
url = "https://whatsapp-messaging-bot.p.rapidapi.com/v1/sendText"
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "whatsapp-messaging-bot.p.rapidapi.com",
"Content-Type": "application/json"
}
payload = {
"chatId": "1234567890",
"text": "Hello! 👋",
"session": "default"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())Everything You Need to Build on WhatsApp
A complete API surface covering messages, media, groups, channels, sessions, contacts, and presence — all accessible with a single HTTP request.
Text Messages
Send plain-text and emoji messages to any contact, group, or channel with full delivery status tracking.
Images & Media
Share photos, images, and visual content with optional captions. Full support for multidevice WhatsApp accounts.
File Attachments
Send PDFs, Word docs, spreadsheets, and any file type. Track delivery, read receipts, and message status.
Voice & Video
Deliver voice notes and video messages for richer customer experiences. Full webhook support for incoming messages.
Group Management
Create groups, add/remove participants, update names and settings. Session persistence across reconnections.
Channel Broadcasting
Create and manage WhatsApp Channels to broadcast to unlimited subscribers. Alternative to WhatsApp Cloud API.
Session Auth (QR + PIN)
Authenticate sessions with QR code scanning or 8-digit pairing code. Sandbox testing environment available.
Contact Lookup
Check if a number is on WhatsApp and retrieve contact profile data with read receipt confirmation.
Presence & Status
Set typing indicators, read receipts, and online/offline presence status in real-time.
Message Replies
Reply to specific messages with any content type, maintaining conversation threads like native WhatsApp.
Multi-Session
Manage multiple WhatsApp accounts simultaneously with session isolation and independent session management.
API Key Auth
Secure every request with per-key authentication, rate limiting, webhook validation, and enterprise security.
How It Works
Get started in three simple steps. From signup to sending your first message.
Get API Key
Sign up and get your API key in seconds. No complicated setup required.
Integrate
Add a few lines of code to your application. Supports all popular languages.
Send Messages
Start sending WhatsApp messages immediately. Track delivery and responses.
It's that simple. Start building with our API today.
Try Free NowUse Cases
Explore how businesses across industries use our WhatsApp API
Notifications & Alerts
Send real-time order, delivery, and system notifications to customers via WhatsApp
E-commerce & Orders
Order confirmations, shipping updates, invoices, and payment reminders directly to customers
Appointment Reminders
Automated appointment and booking reminders to reduce no-shows and improve attendance
Business Automation
Create WhatsApp bots and automated workflows for lead generation and customer engagement
Customer Support
Two-way messaging for support teams to handle customer inquiries in real-time
Security & OTP
Send secure one-time passwords and verification codes for authentication and security
Code Examples
Real-world examples to get you started quickly
import requests
url = "https://whatsapp-messaging-bot.p.rapidapi.com/v1/sendText"
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "whatsapp-messaging-bot.p.rapidapi.com",
"Content-Type": "application/json"
}
payload = {
"chatId": "1234567890",
"text": "Hello! 👋",
"session": "default"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())Join Developers Building on the API
Trusted by independent developers, startups, and engineers shipping on RapidAPI.
Available on RapidAPI Marketplace
Subscribe in seconds. No backend required. Start building today.
WhatsApp API Pricing — Free, Pro, Ultra & Mega Plans
Start free, scale as you grow. All plans include full API access to channels, groups, and sessions.
Requests
Features
Rate Limit
10 requests per second
Bandwidth Platform Fee
10,240 MB / Month + $0.001 per 1MB
Requests
Features
Rate Limit
10 requests per second
Bandwidth Platform Fee
10,240 MB / Month + $0.001 per 1MB
Requests
Features
Rate Limit
20 requests per second
Bandwidth Platform Fee
10,240 MB / Month + $0.001 per 1MB
Requests
Features
Rate Limit
25 requests per second
Bandwidth Platform Fee
10,240 MB / Month + $0.001 per 1MB
Prices shown are billed via RapidAPI Marketplace. Overage charges apply where noted.
WhatsApp API FAQ — Common Questions Answered
Find answers to common questions about our REST API
It is a REST API by Retention Stack that lets you send and receive WhatsApp messages programmatically. Manage sessions, send text/images/files, create groups, and build automated WhatsApp workflows. No local setup required - it's entirely cloud-based.
No! The WhatsApp Messaging API is a cloud-based service. Simply subscribe on RapidAPI, get your API key, and make HTTP requests. No local server or infrastructure needed.
Create a session, then get the QR code via /v1/{session}/auth/qr. Scan it with your WhatsApp camera to authenticate. Alternatively, use pairing codes for 8-digit authentication without scanning.
Text, images, files (PDFs, documents), videos, voice messages, location data, contact cards, and reactions. You can also reply to existing messages and send to individuals, groups, or channels.
Basic: 10 req/sec (100 req/month hard limit). Pro: 10 req/sec (1,000 req/month). Ultra: 20 req/sec (10,000 req/month). Mega: 25 req/sec (50,000 req/month). Pro, Ultra, and Mega plans support overage billing so you never get hard-blocked.
Yes. Create multiple sessions based on your plan: Basic allows 1 session, Pro allows 3, Ultra allows 10, and Mega allows unlimited sessions.
Groups are for multi-way conversations where everyone can message. Channels are broadcast-only where only the owner sends messages to subscribers.
Free plan: Documentation only. Paid plans include email support with 24-hour response time. Contact support@retentionstack.agency or visit RapidAPI for assistance.
Still have questions?
Our support team is here to help. Contact us or check out our documentation.
Contact SupportStart Sending WhatsApp Messages
in Under 5 Minutes.
Subscribe on RapidAPI, grab your key, and make your first API call — all in under five minutes. No server setup, no WhatsApp Business account required.