Campaigns API
The Campaigns API enables you to programmatically create, schedule, monitor, and control bulk outbound campaigns across your organization’s contacts. Campaigns support targeted audience filtering, approved WhatsApp templates, automatic asynchronous dispatching via background task queues, real-time delivery telemetry, and executive PDF reporting.Key Capabilities
Multi-Tier Audience Targeting
Broadcast to your full contact database, filter dynamically by contact tags, or pass specific recipient UUID lists.
Immediate & Scheduled Dispatch
Trigger delivery immediately upon creation or schedule a precise future UTC timestamp with automated TaskIQ background workers.
Interactive Execution Controls
Pause active or scheduled dispatches, resume delivery at will, or cancel campaigns safely before messages are sent.
Live Metrics & PDF Reports
Inspect live aggregated sent, delivered, read, and failed counts, and export branded PDF executive summary reports on demand.
Campaign Lifecycle & States
Every campaign progresses through well-defined operational states:Audience Types
When creating a campaign, configure theaudience_type parameter to control recipient resolution:
Rate Limiting Tiers
Campaign operations are tiered to ensure infrastructure reliability:- Create Campaign:
RateLimitTier.EXPENSIVE— Protects dispatch worker queues. - List / Get Campaign:
RateLimitTier.READ— High-throughput cached telemetry. - Pause / Resume / Cancel / Delete / PDF Export:
RateLimitTier.WRITE— Fast mutation and on-the-fly PDF document generation.
Authentication
All Campaigns API endpoints require a valid organization API key or Bearer JWT token passed in theAuthorization header:
Available Endpoints
‹ PreviousNext ›
Create campaign