# Crear llamadas por lotes

Este punto final crea múltiples llamadas telefónicas por lotes para un agente de ElevenLabs.

Source: https://zild.ai/es-ES/docs/api-reference/post-api-Agent-create-batch-call

POST `/Agent/create-batch-call`

Este punto final crea múltiples llamadas telefónicas por lotes para un agente de ElevenLabs.

## Autenticación

**Se requiere autenticación.** Envía tu clave de API de usuario en la cabecera X-API-Key.

## Parámetros

Esta operación no tiene parámetros de ruta, consulta o encabezado.

## Órgano solicitante

**Tipo de contenido:** `application/json` · **Schema:** `AgentCreateBatchCallRequestDto`



<table class="api-params"><thead><tr><th>Propiedad</th><th>Tipo</th><th>Obligatorio</th><th>Descripción</th><th>Constraints</th></tr></thead><tbody><tr><td><code>batchCallName</code></td><td><code>string</code></td><td>No</td><td>—</td><td>nullable</td></tr><tr><td><code>agentId</code></td><td><code>integer · int32</code></td><td>No</td><td>—</td><td>—</td></tr><tr><td><code>fromNumber</code></td><td><code>string</code></td><td>No</td><td>—</td><td>nullable</td></tr><tr><td><code>tasks</code></td><td><code>array&lt;AgentBatchCallTaskDto&gt;</code></td><td>No</td><td>—</td><td>nullable</td></tr><tr><td><code>scheduledTime</code></td><td><code>string · date-time</code></td><td>No</td><td>—</td><td>nullable</td></tr></tbody></table>



## Ejemplo de solicitud



```
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"
}'
```



## Respuestas



<table class="api-params"><thead><tr><th>Estado</th><th>Descripción</th><th>Cuerpo de respuesta</th></tr></thead><tbody><tr><td><code>200</code></td><td>Llamadas por lotes creadas con éxito</td><td>No se define ningún organismo de respuesta.</td></tr></tbody></table>



## Modelos de datos

`AgentBatchCallTaskDto`

<table class="api-params"><thead><tr><th>Propiedad</th><th>Tipo</th><th>Obligatorio</th><th>Descripción</th><th>Constraints</th></tr></thead><tbody><tr><td><code>contactName</code></td><td><code>string</code></td><td>No</td><td>—</td><td>nullable</td></tr><tr><td><code>toNumber</code></td><td><code>string</code></td><td>No</td><td>—</td><td>nullable</td></tr><tr><td><code>dynamicVariables</code></td><td><code>object</code></td><td>No</td><td>—</td><td>nullable</td></tr><tr><td><code>metadata</code></td><td><code>any</code></td><td>No</td><td>—</td><td>nullable</td></tr></tbody></table>

`AgentCreateBatchCallRequestDto`

<table class="api-params"><thead><tr><th>Propiedad</th><th>Tipo</th><th>Obligatorio</th><th>Descripción</th><th>Constraints</th></tr></thead><tbody><tr><td><code>batchCallName</code></td><td><code>string</code></td><td>No</td><td>—</td><td>nullable</td></tr><tr><td><code>agentId</code></td><td><code>integer · int32</code></td><td>No</td><td>—</td><td>—</td></tr><tr><td><code>fromNumber</code></td><td><code>string</code></td><td>No</td><td>—</td><td>nullable</td></tr><tr><td><code>tasks</code></td><td><code>array&lt;AgentBatchCallTaskDto&gt;</code></td><td>No</td><td>—</td><td>nullable</td></tr><tr><td><code>scheduledTime</code></td><td><code>string · date-time</code></td><td>No</td><td>—</td><td>nullable</td></tr></tbody></table>
