Create a campaign
Authentication
API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.
Request
Optional list of caller-ID phone number IDs to rotate across when placing outbound calls for this campaign. If omitted, the agent’s default phone number is used.
Optional ISO-8601 timestamp for when the campaign should
start dialing. Must be in the future. If provided, the
campaign is created in scheduled status; otherwise it
starts in draft status and must be started manually.
Maximum number of times a failed call is retried before the
participant is marked as failed. 0 disables retries.
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.

