Create batch calls
This endpoint creates multiple batch phone calls for an ElevenLabs agent.
POST
/Agent/create-batch-callThis endpoint creates multiple batch phone calls for an ElevenLabs agent.
Authentication
Authentication required. Send your user API key in the X-API-Key header.
Parameters
This operation has no path, query, or header parameters.
Request body
Content type: application/json · Schema: AgentCreateBatchCallRequestDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
batchCallName | string | No | — | nullable |
agentId | integer · int32 | No | — | — |
fromNumber | string | No | — | nullable |
tasks | array<AgentBatchCallTaskDto> | No | — | nullable |
scheduledTime | string · date-time | No | — | nullable |
Example request
curl --request POST \
--url 'https://api.zild.ai/Agent/create-batch-call' \
--header 'X-API-Key: YOUR_USER_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"batchCallName": "string",
"agentId": 0,
"fromNumber": "string",
"tasks": [
{
"contactName": "string",
"toNumber": "string",
"dynamicVariables": {},
"metadata": "string"
}
],
"scheduledTime": "2026-09-22T18:00:00Z"
}'
Responses
| Status | Description | Response body |
|---|---|---|
200 | Batch calls created successfully | No response body is defined. |
Data models
AgentBatchCallTaskDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
contactName | string | No | — | nullable |
toNumber | string | No | — | nullable |
dynamicVariables | object | No | — | nullable |
metadata | any | No | — | nullable |
AgentCreateBatchCallRequestDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
batchCallName | string | No | — | nullable |
agentId | integer · int32 | No | — | — |
fromNumber | string | No | — | nullable |
tasks | array<AgentBatchCallTaskDto> | No | — | nullable |
scheduledTime | string · date-time | No | — | nullable |