Creates an AI voice campaign: an AI agent calls every customer in one of your broadcast groups from your numbers, as Campaigns does in DoubleTick. It starts calling at once, or at scheduledAt.
Before you call
AI campaigns must be turned on for your organization, otherwise the call fails with 403.
The API key's user needs the Create & manage voice campaigns permission, otherwise it fails with 401.
segmentId is a static broadcast group of your organization. A dynamic group fails with 422; another organization's group with 404.
aiBotId is one of your AI agents. Another organization's agent fails with 404. The agent's call settings must be complete.
integrationIds are 1 to 10 of your numbers, all one kind: phone numbers with callChannelPSTN_AI, WhatsApp numbers with WHATSAPP_AI (the default).
How it works
A broadcast group can have one active campaign at a time. A second one fails with 422 until the first is cancelled or finished.
scheduledAt must be in the future and name its time zone (Z or +05:30). Without it the campaign starts calling at once.
windowStart and windowEnd are daily calling hours, HH:mm, in your organization's time zone; send both, with the end later the same day.
concurrency is how many calls run at once, 1 to 200. Left out, the campaign takes what the agent's other campaigns leave, up to 10. More than the agent or the numbers have free fails with 400.
Failed calls are retried automatically unless autoRetryEnabled is false.
A refusal you can act on carries a code in the error: CAMPAIGN_LIST_BUSY, CAMPAIGN_LIST_DYNAMIC, CAMPAIGN_CONCURRENCY_TOO_HIGH, CAMPAIGN_AGENT_SETUP_INCOMPLETE, CAMPAIGN_AGENT_NO_WHATSAPP_CALLS or CAMPAIGN_NUMBERS_CANNOT_CALL. A paused agent answers 422 with reasonAI_AGENT_PAUSED.
Rate limit
5 requests per minute for each API key user.
Recent Requests
Log in to see full request history
Time
Status
User Agent
Retrieving recent requests…
Loading…
Responses
401
Unauthorized
403
Forbidden: the API key is invalid or revoked, the caller's IP is not allowlisted, or browser access is disabled. Answered by the gateway. Also: AI campaigns are not turned on for your organization.
404
Not Found: the broadcast group or the AI agent is not your organization's.
422
Unprocessable: the broadcast group already has an active campaign, the group is dynamic, or the agent is paused.
429
Too Many Requests
Updated about 20 hours ago
Did this page help you?
Yes
No
Language
ShellNodeRubyPHPPython
Credentials
Header
Header
Loading…
Response
Click Try It! to start a request and see the response here! Or choose an example: