Skip to main content
POST
Create Batch Call

Authorizations

Authorization
string
header
required

Your API key. Send in the Authorization header as: Bearer

Headers

X-Idempotency-Key
string | null

Body

application/json

Create batch call request with enhanced features

name
string
required

Human-friendly campaign name

Required string length: 1 - 255
Example:

"March follow-up campaign"

agent_id
string
required

Internal agent UUID

Example:

"agt_123e4567-e89b-12d3-a456-426614174000"

phone_number_ids
string[] | null

Array of phone number UUIDs (optional, auto-fills from agent if empty)

Example:
phone_rotation_strategy
enum<string>
default:random
Available options:
random,
sequential,
round_robin
contact_source
enum<string>
default:csv
Available options:
csv,
folder,
manual
contact_folder_id
string | null
contact_ids
string[] | null

Existing contact IDs from your contacts table to add to this batch call

Example:
contacts
Contacts · object[] | null

Inline contacts: list of objects with phone_number (required), and optional first_name, last_name, email, custom_fields

Example:
schedule_type
enum<string>
default:immediate
Available options:
immediate,
scheduled
scheduled_at
string<date-time> | null

When to start the campaign (UTC). Required if schedule_type is 'scheduled'.

Example:

"2026-03-20T09:00:00Z"

timezone
string
default:UTC

IANA timezone used to interpret daily start/end windows

Example:

"America/New_York"

start_time
string | null

Daily start time (HH:MM format)

Example:

"09:00"

end_time
string | null

Daily end time (HH:MM format)

Example:

"17:30"

working_days
integer[]

Working days as integers (1=Mon, 7=Sun)

Example:
max_concurrent_calls
integer
default:10

Internal concurrency limit (auto-managed)

Required range: 1 <= x <= 100
max_calls_per_day
integer | null
default:500

Number of calls to make per day — primary scheduling control

Required range: x >= 1
retry_failed
boolean
default:false
max_retry_attempts
integer
default:2

Auto-retry attempts for system errors

Required range: 0 <= x <= 3

Response

Successful Response

data
PublicBatchResource · object
required
meta
ResponseMeta · object
required

Metadata included in every API response.