> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cartesia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch calling

Queue many outbound calls in one request. A batch validates and stores every recipient, then Cartesia dials them in the background up to a concurrency limit you set.

> [!WARNING]
>
> You are responsible for complying with the regulations that apply to your calls, including the Telephone Consumer Protection Act (TCPA). See Cartesia's [Acceptable Use Policy](https://cartesia.ai/legal/acceptable-use.html).

Create a batch with your recipient list, then track its progress as calls dial. You can retry the recipients whose calls failed, or cancel a batch to stop the calls still queued.

## Create a batch

Send up to 5,000 recipients with the agent and the phone number to dial from. See [Create Call Batch](https://docs.cartesia.ai/api-reference/agents/call-batches/create-call-batch.md) for every field.

Include `dynamic_variables` for each recipient to personalize the call. See [Dynamic variables](https://docs.cartesia.ai/agents/dynamic-variables.md).

```bash cURL theme={null}
curl -X POST "https://api.cartesia.ai/agents/calls/batches" \
  -H "X-API-Key: $CARTESIA_API_KEY" \
  -H "Cartesia-Version: 2026-08-14" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "March outreach",
    "from_number_id": "ap_Q8PRh7lXyZsawXJmN2KcT5",
    "agent_id": "agent_Fo7pKNBUwLZxrTd6jvhpaE",
    "target_concurrency_limit": 10,
    "recipients": [
      { "to_number": "+14155559876", "dynamic_variables": { "customer_name": "Jordan" } },
      { "to_number": "+14155550101", "dynamic_variables": { "customer_name": "Alex" } }
    ]
  }'
```

```python Python theme={null}
import requests

headers = {
    "X-API-Key": "YOUR_CARTESIA_API_KEY",
    "Cartesia-Version": "2026-08-14",
    "Content-Type": "application/json",
}

payload = {
    "name": "March outreach",
    "from_number_id": "ap_Q8PRh7lXyZsawXJmN2KcT5",
    "agent_id": "agent_Fo7pKNBUwLZxrTd6jvhpaE",
    "target_concurrency_limit": 10,
    "recipients": [
        {"to_number": "+14155559876", "dynamic_variables": {"customer_name": "Jordan"}},
        {"to_number": "+14155550101", "dynamic_variables": {"customer_name": "Alex"}},
    ],
}

response = requests.post(
    "https://api.cartesia.ai/agents/calls/batches", headers=headers, json=payload
)
response.raise_for_status()
batch = response.json()
print(batch["id"])  # save to track or cancel the batch
```

```json Response theme={null}
{
  "id": "acb_PDWFN995PzAudChwFDqVZ2",
  "name": "March outreach",
  "agent_id": "agent_Fo7pKNBUwLZxrTd6jvhpaE",
  "from_number_id": "ap_Q8PRh7lXyZsawXJmN2KcT5",
  "region": "US",
  "target_concurrency_limit": 2,
  "status": "pending",
  "total_calls_scheduled": 2,
  "total_calls_dispatched": 0,
  "total_calls_finished": 0,
  "retry_count": 0,
  "created_at": "2026-03-01T12:00:00Z",
  "last_updated_at": "2026-03-01T12:00:00Z"
}
```

The API returns **201** with the batch and its derived progress counters. Save the `id` to track or cancel the batch.

`target_concurrency_limit` caps how many of the batch's calls dial at once. If unspecified, it defaults to half of your organization's agent-call concurrency limit, leaving headroom for other calls. It must not exceed that limit, or the request is rejected. Batch calling counts only against your agent-call concurrency limit, not TTS or STT limits.

Each batch reserves its `target_concurrency_limit` against your organization's shared agent-call concurrency limit. If there isn't enough capacity when the batch is ready to run, it stays `pending` and starts dialing automatically once your running batches free up capacity, oldest batch first.

To run the batch later, set `scheduled_at` to an RFC 3339 time with a timezone offset, for example `2026-06-15T16:00:00Z`.

## Track progress

Fetch a batch with [Get Call Batch](https://docs.cartesia.ai/api-reference/agents/call-batches/get-call-batch.md) to see its status and per-recipient detail.

```bash cURL theme={null}
curl "https://api.cartesia.ai/agents/calls/batches/acb_PDWFN995PzAudChwFDqVZ2" \
  -H "X-API-Key: $CARTESIA_API_KEY" \
  -H "Cartesia-Version: 2026-08-14"
```

```python Python theme={null}
import requests

headers = {
    "X-API-Key": "YOUR_CARTESIA_API_KEY",
    "Cartesia-Version": "2026-08-14",
}

response = requests.get(
    "https://api.cartesia.ai/agents/calls/batches/acb_PDWFN995PzAudChwFDqVZ2",
    headers=headers,
)
response.raise_for_status()
batch = response.json()

print(batch["status"])
for recipient in batch["recipients"]:
    print(recipient["to_number"], recipient["status"])
```

```json Response theme={null}
{
  "id": "acb_PDWFN995PzAudChwFDqVZ2",
  "name": "March outreach",
  "agent_id": "agent_Fo7pKNBUwLZxrTd6jvhpaE",
  "from_number_id": "ap_Q8PRh7lXyZsawXJmN2KcT5",
  "region": "US",
  "target_concurrency_limit": 2,
  "status": "in_progress",
  "total_calls_scheduled": 2,
  "total_calls_dispatched": 1,
  "total_calls_finished": 1,
  "retry_count": 0,
  "created_at": "2026-03-01T12:00:00Z",
  "last_updated_at": "2026-03-01T12:05:00Z",
  "recipients": [
    {
      "id": "abcr_295cx2ZMPitmqQtBtWUxSR",
      "to_number": "+14155559876",
      "status": "completed",
      "agent_call_id": "ac_2u7rspBaHJ7bQ7TiR3mK2n",
      "end_reason": "agent_hangup",
      "created_at": "2026-03-01T12:00:00Z"
    },
    {
      "id": "abcr_TD5XMc9uNw6mJfhFbcvQTm",
      "to_number": "+14155550101",
      "status": "queued",
      "created_at": "2026-03-01T12:00:00Z"
    }
  ]
}
```

The batch [`status`](https://docs.cartesia.ai/api-reference/agents/call-batches/get-call-batch#response-status) tracks dispatch progress, and each recipient's [`status`](https://docs.cartesia.ai/api-reference/agents/call-batches/get-call-batch#response-recipients-items-status) tracks its own call.

Use each recipient's `agent_call_id` to fetch per-call information via [Get Call](https://docs.cartesia.ai/api-reference/agents/calls/get-call.md). A recipient that fails before any call is placed has no `agent_call_id`; read its `error_message` for more information.

Fetch a batch's calls directly with [List Calls](https://docs.cartesia.ai/api-reference/agents/calls/list-calls.md) by passing `batch_id`. It returns one entry per attempt, so a recipient that was retried appears more than once, and recipients that failed before dialing don't appear at all because they never had a call.

To list every batch on your account, optionally filtered by agent, use [List Call Batches](https://docs.cartesia.ai/api-reference/agents/call-batches/list-call-batches.md).

## Retry a batch

[Retry Call Batch](https://docs.cartesia.ai/api-reference/agents/call-batches/retry-call-batch.md) re-queues the recipients whose latest attempt failed or went unanswered. Recipients whose calls completed are left untouched. A cancelled batch cannot be retried.

```bash cURL theme={null}
curl -X POST "https://api.cartesia.ai/agents/calls/batches/acb_PDWFN995PzAudChwFDqVZ2/retry" \
  -H "X-API-Key: $CARTESIA_API_KEY" \
  -H "Cartesia-Version: 2026-08-14"
```

```python Python theme={null}
import requests

headers = {
    "X-API-Key": "YOUR_CARTESIA_API_KEY",
    "Cartesia-Version": "2026-08-14",
}

response = requests.post(
    "https://api.cartesia.ai/agents/calls/batches/acb_PDWFN995PzAudChwFDqVZ2/retry",
    headers=headers,
)
response.raise_for_status()
batch = response.json()
print(batch["retry_count"])  # incremented when failed recipients were re-queued
```

The response is the batch. `retry_count` increases only if at least one recipient was re-queued.

## Cancel a batch

[Cancel Call Batch](https://docs.cartesia.ai/api-reference/agents/call-batches/cancel-call-batch.md) stops dialing the batch's queued calls. Calls already in progress finish normally.

```bash cURL theme={null}
curl -X POST "https://api.cartesia.ai/agents/calls/batches/acb_PDWFN995PzAudChwFDqVZ2/cancel" \
  -H "X-API-Key: $CARTESIA_API_KEY" \
  -H "Cartesia-Version: 2026-08-14"
```

```python Python theme={null}
import requests

headers = {
    "X-API-Key": "YOUR_CARTESIA_API_KEY",
    "Cartesia-Version": "2026-08-14",
}

response = requests.post(
    "https://api.cartesia.ai/agents/calls/batches/acb_PDWFN995PzAudChwFDqVZ2/cancel",
    headers=headers,
)
response.raise_for_status()
batch = response.json()
print(batch["status"])  # "cancelled"
```

The response is the batch with `status` set to `cancelled`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.