Python · Django · FastAPI
Send WhatsApp messages from Python
One requests.post call. Use it in Django signals, Celery tasks, FastAPI endpoints, data pipelines or a cron script that sends daily reports to WhatsApp.
- From Ksh 500/month
- No per-message fees
- Pay with M-Pesa
- 2 min
- from sign-up to first message
- Ksh 500
- a month, no per-message fees
- 10,000
- recipients per bulk campaign
- M-Pesa
- pay by STK push, in shillings
Send a WhatsApp message in Python
Runs anywhere Python 3 runs.
- Just requests. No SDK — pip install requests and you are done. httpx works the same way.
- Great for automation. Send daily sales summaries, alerts from monitoring scripts or reminders from a scheduled job.
- Celery-ready. Fire-and-forget from a task, or use the bulk endpoint and let us pace delivery.
- Receive replies. A Flask or FastAPI endpoint can receive signed webhook events for incoming messages.
import requests
res = requests.post(
"https://wavelink.co.ke/api/v1/messages",
headers={"Authorization": "Bearer wl_live_..."},
json={
"to": "254712345678",
"text": "Daily report: 128 orders, Ksh 412,300 in sales 📈"
},
)
data = res.json()Frequently asked questions
Still unsure? Read the docs or try it free — it takes two minutes.
How do I send a WhatsApp message using Python?
Install requests, then call requests.post('https://<your-domain>/api/v1/messages', headers={'Authorization': 'Bearer YOUR_API_KEY'}, json={'to': '254712345678', 'text': 'Hello'}). The JSON response contains the message ID and status.
Can I automate WhatsApp messages with Python?
Yes. Run the request from a cron job, Celery beat, Airflow or any scheduler — or pass scheduleAt in the request and let us send it at the right time.
Is there a Python SDK?
You don't need one. The API is small and plain JSON over HTTPS, so a few lines with requests or httpx cover everything.
Is there a free trial?
Yes. Every new account gets a 7-day free trial with all features, including the API, bulk campaigns, webhooks and the inbox. No card is needed to start.
Keep reading
Send your first WhatsApp message in two minutes.
7-day free trial, every feature included. Pay with M-Pesa when you are ready.
Create your free account