curl --request PUT \
--url http://localhost:8080/batch-call/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"from_number": "+14157774444",
"tasks": [
{
"to_number": "+12137774445",
"dynamic_variables": {
"first_name": "John"
},
"max_retries": 3
}
],
"name": "Updated Campaign Name",
"trigger_timestamp": 1735718500000,
"agent_id": "agent_7ff47846-c8a0-4304-ae13-88cfc31c1a03",
"timezone": "UTC",
"status": "scheduled",
"send_now": false
}
'{
"message": "Batch call updated successfully",
"status": "success",
"error": null,
"data": {
"batch_call_id": "batch_call_a1b2c3d4e5f6789012345678901234567",
"name": "Updated Campaign Name",
"from_number": "+14157774444",
"scheduled_timestamp": 1735718500000,
"total_task_count": 1,
"total": 1,
"sent": 0,
"picked_up": 0,
"completed": 0,
"agent_id": "agent_7ff47846-c8a0-4304-ae13-88cfc31c1a03",
"organization_id": "e3yn0c4mivqs8y4yhb5k",
"status": "scheduled",
"timezone": "UTC",
"last_sent_timestamp": null,
"tasks_url": "https://storage.azure.com/.../tasks.json",
"created_timestamp": 1735718400000
}
}Updates a batch call by ID.
curl --request PUT \
--url http://localhost:8080/batch-call/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"from_number": "+14157774444",
"tasks": [
{
"to_number": "+12137774445",
"dynamic_variables": {
"first_name": "John"
},
"max_retries": 3
}
],
"name": "Updated Campaign Name",
"trigger_timestamp": 1735718500000,
"agent_id": "agent_7ff47846-c8a0-4304-ae13-88cfc31c1a03",
"timezone": "UTC",
"status": "scheduled",
"send_now": false
}
'{
"message": "Batch call updated successfully",
"status": "success",
"error": null,
"data": {
"batch_call_id": "batch_call_a1b2c3d4e5f6789012345678901234567",
"name": "Updated Campaign Name",
"from_number": "+14157774444",
"scheduled_timestamp": 1735718500000,
"total_task_count": 1,
"total": 1,
"sent": 0,
"picked_up": 0,
"completed": 0,
"agent_id": "agent_7ff47846-c8a0-4304-ae13-88cfc31c1a03",
"organization_id": "e3yn0c4mivqs8y4yhb5k",
"status": "scheduled",
"timezone": "UTC",
"last_sent_timestamp": null,
"tasks_url": "https://storage.azure.com/.../tasks.json",
"created_timestamp": 1735718400000
}
}API Key for MCP server and external service authentication
API Secret for MCP server and external service authentication
Batch call ID
"batch_call_a1b2c3d4e5f6789012345678901234567"