Campaigns
Create a campaign
Changed onCreate a campaign
post/campaign
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/campaign
- AuthHTTP bearer
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
}Changes
- warning
the
request property's maxLength was set to40
- warning
- warning
added the new
processingenum value to the/response property for the response status - info
added the non-success response with the status
- warning