By the end of this guide you’ll haveDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/rahul-baberwal/django-meta-whatsapp/llms.txt
Use this file to discover all available pages before exploring further.
django-meta-whatsapp installed, wired up to your Django project, and ready to receive and send WhatsApp messages through the Meta Cloud API v22.0. The whole process takes less than 5 minutes.
Add to INSTALLED_APPS
Add
django_meta_whatsapp to your INSTALLED_APPS list in settings.py.settings.py
Mount URLs
Include the package URLs in your project’s root
urls.py. The namespace argument is required.urls.py
Configure credentials
Add the
WHATSAPP settings dict to settings.py. At minimum you need your Meta access token, the phone number ID, and a webhook verification token.settings.py
ACCESS_TOKEN is the permanent (system-user) access token generated in the Meta Business Suite — not a short-lived user token. VERIFY_TOKEN is any secure random string you choose; Meta will send it back on webhook verification so your endpoint can confirm the request is genuine.Run migrations
Apply the package’s database migrations. A single clean migration (
0001_initial) creates all required tables.Open the dashboard
Start your development server and navigate to the dashboard:
- Visit
http://127.0.0.1:8000/whatsapp/in your browser. - If no WhatsApp Account exists yet, the UI will prompt you to add one under Settings → Accounts.
- In your Meta App dashboard, set the webhook URL to:
Use your
VERIFY_TOKENas the verification token when prompted by Meta. - Head to the Templates tab and click Sync from Meta to import your approved message templates.
- Open the Inbox — you’re live!
Send your first message
Once configured, you can send a WhatsApp text message from anywhere in your Django codebase using thesend_text_message utility:
91 for India). The function normalises formatting automatically — leading + signs, spaces, and dashes are all stripped.
Next steps
Configuration
Explore every option in the
WHATSAPP settings dict — UI customisation, audience providers, Celery, and more.Inbox
Learn how the live unified inbox works, including reply threading and media handling.
Campaigns
Set up bulk marketing campaigns with approved templates and audience targeting.
REST API
Authenticate with API keys and integrate WhatsApp messaging into external services.