Create a Batch or Campaign
Send large volumes of calls at once with follow-up sequences.
POST
Headers
Your API key for authentication.
Use your own Twilio account and only return inbound numbers associated with that account sid (optional).
Body
Name for your batch/campaign to later reference.
An array of objects representing phone numbers to send calls to and call parameters.
phone_number
- (STRING) The phone number to send a call to.- All other parameters supported by the Send Call endpoint are supported here as well. They will be applied to each call in the batch.
Parameters for the call.
All other parameters supported by the Send Call endpoint are supported here as well. They will be applied to each call in the batch.
THIS TURNS A BATCH INTO A CAMPAIGN.
If you pass in a sequence, the batch will be turned into a campaign. A campaign is a squence of calls, that continue to be sent until the user answers, or retries has been exhausted.
sequence.retries
- (INTEGER) Number of times to retry when no answer.sequence.wait_period
- (INTEGER) Number of days to wait in between follow ups (retries).sequence.wait_period_time_unit
- (STRING) Time unit for the wait period. (MINUTE
,HOUR
,DAY
)