Campaigns
Create a campaign
Create a campaign
post/campaign
Request body
Example request
{
"name": "My Campaign",
"description": "This is a campaign to test the API",
"audienceId": "60d0fe4f5311236168a109ca",
"agentId": "60d0fe4f5311236168a109ca",
"phoneNumberIds": [
"60d0fe4f5311236168a109cb"
],
"scheduledAt": "2026-04-24T10:00:00.000Z",
"maxRetries": 3,
"retryDelay": 15
}Response
Campaign created successfully. Note: the response is the raw Mongoose document — agentId and audienceId are plain ObjectId strings here, not nested objects as returned by GET endpoints.
Example response
{
"status": true
}