Campaigns
Create a new campaign
Creates a new SMS campaign for the authenticated user organization. Accepts new and existing contacts and optional segmentation and assignment configs, and writes one recipient row per contact. The campaign is created scheduled. A campaign without a future date (or a segmented one with a segment due now) is queued for the bulk send workers in the request; the workers move it to sending. A campaign that could not be queued is started by the next scheduler run.
Authorization
bearerAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/campaigns" \ -H "Content-Type: application/json" \ -d '{ "name": "Q2 Lead Gen", "message": "Hi {{firstName}}, are you still interested?", "newContacts": [ { "firstName": "Jamie", "phoneNumber": "+14155550133" } ], "selectedExistingContacts": [ { "_id": "665f1a0c0e0a4b001a2c9f01", "firstName": "Sam", "lastName": "Patel", "phoneNumber": "+14165550100" }, { "_id": "665f1a0c0e0a4b001a2c9f02", "firstName": "Alex", "lastName": "Morgan", "phoneNumber": "+14165550101" } ], "scheduleDate": "2026-05-20T15:00:00.000Z", "isAutopilot": false, "type": "sms" }'{ "success": true, "message": "Campaign created", "data": { "_id": "665f1a0c0e0a4b001a2c9f10", "name": "Q2 Lead Gen", "status": "scheduled", "scheduleDate": "2026-05-20T15:00:00.000Z" }}