The campaigns API provides a read endpoint for retrieving campaign status and metrics. Campaign creation and execution are handled through the dashboard UI or by callingDocumentation 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.
run_campaign() / run_campaign_async() from Python code. See Python Utility Functions for the programmatic API and Campaigns for the full campaign creation guide.
GET /whatsapp/api/campaigns/
Retrieve the 50 most recent campaigns ordered by creation date (newest first). Requires theX-API-Key header — see Authentication.
Example
Success Response
Response Fields
List of up to 50 campaign objects, sorted descending by
created_at.Campaign Statuses
| Status | Meaning |
|---|---|
draft | Created in the dashboard but not yet queued or sent |
scheduled | Queued for a future send time via scheduled_at |
running | Currently dispatching messages to recipients |
completed | All send attempts have been made (check failed_count for partial failures) |
failed | The campaign could not start, typically due to a configuration error |
paused | Temporarily halted mid-send; can be resumed |
Creating and Running Campaigns
Campaign creation and triggering are handled outside the REST API. You have two options: Dashboard UI: Navigate to/whatsapp/campaigns/ → Add Campaign, configure your template, audience, and optional schedule, then click Run.
Python code: Call the utility function directly from your application logic or a Celery task: