POST /api/campaigns
Create a new campaign in draft status. Link it to a template and configure the delivery mode. Add recipients separately after creation.
Headers
Your CometChat App ID.
Your CometChat API Key.
Request body
Display name for the campaign.
The template ID to use for this campaign.
Delivery mode:
realtime or batch.Optional tag for categorizing campaigns.
Example request
Example response
After creating a campaign, add recipients via the add recipients or CSV upload endpoints, then trigger delivery with send campaign.