メインコンテンツへスキップ
POST
/
agents
/
calls
/
batches
Create Call Batch
curl --request POST \
  --url https://api.cartesia.ai/agents/calls/batches \
  --header 'Authorization: Bearer <token>' \
  --header 'Cartesia-Version: <cartesia-version>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "agent_id": "<string>",
  "from_number_id": "<string>",
  "recipients": [
    {
      "to_number": "<string>",
      "metadata": {}
    }
  ],
  "target_concurrency_limit": 2,
  "ringing_timeout_seconds": 42,
  "max_call_duration_minutes": 240,
  "scheduled_at": "2023-11-07T05:31:56Z"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "agent_id": "<string>",
  "from_number_id": "<string>",
  "target_concurrency_limit": 123,
  "total_calls_scheduled": 123,
  "total_calls_dispatched": 123,
  "total_calls_finished": 123,
  "retry_count": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "last_updated_at": "2023-11-07T05:31:56Z",
  "scheduled_at": "2023-11-07T05:31:56Z",
  "admitted_at": "2023-11-07T05:31:56Z",
  "recipients": [
    {
      "id": "<string>",
      "to_number": "<string>",
      "status": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "agent_call_id": "<string>",
      "error_message": "<string>",
      "metadata": {}
    }
  ]
}

承認

Authorization
string
header
必須

Cartesia API key (sk_car_...). Get one at play.cartesia.ai/keys.

ヘッダー

Cartesia-Version
enum<string>
必須

API version header.

利用可能なオプション:
2026-03-01
:

"2026-03-01"

ボディ

application/json

Request body for queueing a batch of outbound calls.

name
string
必須

A label for the batch.

agent_id
string
必須

The identifier of the agent that handles the batch's calls.

from_number_id
string
必須

The identifier of the phone number to place calls from. The attached provider handles outbound calling for this number.

recipients
AgentOutboundCallItem · object[]
必須

Per-call destination and metadata configuration. Up to 5,000 recipients per batch.

Required array length: 1 - 5000 elements
target_concurrency_limit
integer

Maximum number of calls from this batch to dial concurrently. Must not exceed the organization's concurrency limit. Omit to default to half of the organization's agent-call concurrency limit, leaving headroom for other calls.

必須範囲: x >= 1
ringing_timeout_seconds
integer

Seconds to wait for the callee to answer before giving up. Omit to use the default (60 seconds).

必須範囲: 5 <= x <= 80
max_call_duration_minutes
integer

Maximum call duration in minutes. Omit to use the default (480 minutes).

必須範囲: 1 <= x <= 480
scheduled_at
string<date-time>

When to start dispatching the batch, as an RFC3339 timestamp with a timezone offset (e.g. 2026-06-15T16:00:00Z). Must be in the future and within 30 days. Omit to dispatch immediately.

region
enum<string>

The region from which the batch's outbound calls are dispatched. Valid only when from_number_id is a SIP-trunk number; rejected for other telephony account types. Omit to derive the region from the telephony account.

利用可能なオプション:
US,
EU,
APAC

レスポンス

The created batch, with all of its call requests queued.

id
string
必須

The unique identifier for the batch.

name
string
必須

The batch's label.

agent_id
string
必須

The identifier of the agent that handles the batch's calls.

from_number_id
string
必須

The identifier of the phone number the batch dials from.

region
enum<string>
必須

The deployment region whose dispatcher drains the batch.

利用可能なオプション:
US,
EU,
APAC
target_concurrency_limit
integer
必須

Maximum number of calls from this batch dialed concurrently.

status
enum<string>
必須

The batch's lifecycle status, derived at read time from dispatch progress.

StatusMeaning
pendingNo calls dispatched yet
in_progressSome calls dispatched, not all
completedAll recipients dispatched
failedAll recipients failed before dialing
cancelledCancelled before every call was dispatched
利用可能なオプション:
pending,
in_progress,
completed,
failed,
cancelled
total_calls_scheduled
integer
必須

Total recipients queued in the batch.

total_calls_dispatched
integer
必須

Recipients handed to the dialer so far, including those that failed before a call could be placed.

total_calls_finished
integer
必須

Recipients whose latest call attempt reached a terminal state (completed or failed), including pre-dial failures.

retry_count
integer
必須

Number of times the batch has been retried. 0 until the first retry.

created_at
string<date-time>
必須

When the batch was created.

last_updated_at
string<date-time>
必須

When the batch was last updated.

scheduled_at
string<date-time>

The scheduled dispatch time, in RFC3339 UTC format. Omitted for batches that dispatch immediately.

admitted_at
string<date-time>

The actual dispatch time, in RFC3339 UTC format. The batch may stay unadmitted in the queue due to scheduling or unavailable concurrency.

recipients
AgentCallBatchRecipient · object[]

The batch's recipients. Returned only on GET /agents/calls/batches/{batch_id}.