> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.anthropod.in/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.anthropod.in/_mcp/server.

# Create outbound calls

POST https://anthropod.in/api/v2/voice_agents/batch/make_outbound_call/
Content-Type: application/json

Create outbound call requests for your configured Voice Agent. A queued response confirms that the request was accepted for processing. Accepts 1–20 recipients per request. [Outbound calling guide](/outbound-calls).

Reference: https://docs.anthropod.in/api-reference/voice-agents/create-outbound-calls

## Authentication

- `Authorization` header (bearer token, required) — Existing private account API key from Developer Hub. Keep it on your backend.

## Request

### Body (application/json)

This endpoint expects an object.

- `agent_id` (string, required) — Active Voice Agent authorized for your account.
- `data` (list of object, required) — Accepts 1–20 recipients per request.
  - `phone_number` (string, required) — Recipient number in the format configured for your telephony provider.
  - `customer_id` (string, required) — Your customer correlation identifier.
  - `custom_variables` (map from string to any, optional) — Values matching your agent configuration. Required variables must be supplied; names and types depend on that configuration.

## Response

### 200

Request acknowledgement or initiation result; see the response fields.

- `processing_id` (string, required) — Accepted batch identifier. Retain alongside your customer IDs.
- `status` (enum, required) — Call request accepted for processing.
  - Allowed values: `queued`

## Errors

### 400 Bad Request Error

Invalid agent or request.

- `error` (string or object, required) — A string for general errors, or an object for a rejected batch item.
  - object
    - `message` (string, required) — Reason this record was rejected.
    - `data` (string, required) — Rejected input record serialized as a JSON string.
- `error_type` (string, optional) — Optional error category.

### 401 Unauthorized Error

Invalid API key.

- `error` (string or object, required) — A string for general errors, or an object for a rejected batch item.
  - object
    - `message` (string, required) — Reason this record was rejected.
    - `data` (string, required) — Rejected input record serialized as a JSON string.
- `error_type` (string, optional) — Optional error category.

### 403 Forbidden Error

Insufficient account balance.

- `error` (string or object, required) — A string for general errors, or an object for a rejected batch item.
  - object
    - `message` (string, required) — Reason this record was rejected.
    - `data` (string, required) — Rejected input record serialized as a JSON string.
- `error_type` (string, optional) — Optional error category.

### 500 Internal Server Error

Server error.

- `error` (string or object, required) — A string for general errors, or an object for a rejected batch item.
  - object
    - `message` (string, required) — Reason this record was rejected.
    - `data` (string, required) — Rejected input record serialized as a JSON string.
- `error_type` (string, optional) — Optional error category.

## Examples

**Request**

```json
{
  "agent_id": "agent_demo_001",
  "data": [
    {
      "phone_number": "+12025550123",
      "customer_id": "customer_demo_001",
      "custom_variables": {
        "customer_name": "Alex"
      }
    }
  ]
}
```

**Response**

```json
{
  "processing_id": "P123e4567e89b42d3a456426614174000",
  "status": "queued"
}
```

**SDK Code**

```python
import requests

url = "https://anthropod.in/api/v2/voice_agents/batch/make_outbound_call/"

payload = {
    "agent_id": "agent_demo_001",
    "data": [
        {
            "phone_number": "+12025550123",
            "customer_id": "customer_demo_001",
            "custom_variables": { "customer_name": "Alex" }
        }
    ]
}
headers = {
    "Authorization": "Bearer <accountApiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://anthropod.in/api/v2/voice_agents/batch/make_outbound_call/';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <accountApiKey>', 'Content-Type': 'application/json'},
  body: '{"agent_id":"agent_demo_001","data":[{"phone_number":"+12025550123","customer_id":"customer_demo_001","custom_variables":{"customer_name":"Alex"}}]}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://anthropod.in/api/v2/voice_agents/batch/make_outbound_call/"

	payload := strings.NewReader("{\n  \"agent_id\": \"agent_demo_001\",\n  \"data\": [\n    {\n      \"phone_number\": \"+12025550123\",\n      \"customer_id\": \"customer_demo_001\",\n      \"custom_variables\": {\n        \"customer_name\": \"Alex\"\n      }\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <accountApiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://anthropod.in/api/v2/voice_agents/batch/make_outbound_call/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <accountApiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"agent_id\": \"agent_demo_001\",\n  \"data\": [\n    {\n      \"phone_number\": \"+12025550123\",\n      \"customer_id\": \"customer_demo_001\",\n      \"custom_variables\": {\n        \"customer_name\": \"Alex\"\n      }\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://anthropod.in/api/v2/voice_agents/batch/make_outbound_call/")
  .header("Authorization", "Bearer <accountApiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"agent_id\": \"agent_demo_001\",\n  \"data\": [\n    {\n      \"phone_number\": \"+12025550123\",\n      \"customer_id\": \"customer_demo_001\",\n      \"custom_variables\": {\n        \"customer_name\": \"Alex\"\n      }\n    }\n  ]\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://anthropod.in/api/v2/voice_agents/batch/make_outbound_call/', [
  'body' => '{
  "agent_id": "agent_demo_001",
  "data": [
    {
      "phone_number": "+12025550123",
      "customer_id": "customer_demo_001",
      "custom_variables": {
        "customer_name": "Alex"
      }
    }
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <accountApiKey>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://anthropod.in/api/v2/voice_agents/batch/make_outbound_call/");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <accountApiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"agent_id\": \"agent_demo_001\",\n  \"data\": [\n    {\n      \"phone_number\": \"+12025550123\",\n      \"customer_id\": \"customer_demo_001\",\n      \"custom_variables\": {\n        \"customer_name\": \"Alex\"\n      }\n    }\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <accountApiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "agent_id": "agent_demo_001",
  "data": [
    [
      "phone_number": "+12025550123",
      "customer_id": "customer_demo_001",
      "custom_variables": ["customer_name": "Alex"]
    ]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://anthropod.in/api/v2/voice_agents/batch/make_outbound_call/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```