curl --request POST \
--url https://api.callkaro.ai/v2/call/campaign \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "Inspection Campaign"
}
'{
"batch_id": "68433b7b0dee98e59245ebab",
"message": "Campaign created successfully",
"status": "success"
}Create a campaign without requiring an agent ID upfront. Agent can be assigned later.
curl --request POST \
--url https://api.callkaro.ai/v2/call/campaign \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "Inspection Campaign"
}
'{
"batch_id": "68433b7b0dee98e59245ebab",
"message": "Campaign created successfully",
"status": "success"
}curl -X POST https://api.callkaro.ai/v2/call/campaign \
-H "Content-Type: application/json" \
-H "X-API-KEY: your_api_key_here" \
-d '{
"name": "Multi-Agent Campaign"
}'
Create the campaign (no agent ID required)
curl -X POST https://api.callkaro.ai/v2/call/campaign \
-H "X-API-KEY: your_api_key_here" \
-d '{
"name": "Inspection Campaign"
}'
{
"batch_id": "68433b7b0dee98e59245ebab",
"message": "Campaign created successfully",
"status": "success"
}
Add calls with any agent
# Call 1 - Agent A
curl -X POST https://api.callkaro.ai/call/outbound \
-H "X-API-KEY: your_api_key_here" \
-d '{
"to_number": "+919876543210",
"batch_id": "68433b7b0dee98e59245ebab",
"agent_id": "agent_sales_id",
"metadata": {"name": "Customer 1"}
}'
# Call 2 - Agent B
curl -X POST https://api.callkaro.ai/call/outbound \
-H "X-API-KEY": your_api_key_here" \
-d '{
"to_number": "+919876543211",
"batch_id": "68433b7b0dee98e59245ebab",
"agent_id": "agent_support_id",
"metadata": {"name": "Customer 2"}
}'
Monitor in dashboard
/dashboard/batch-calls/{batch_id}| Feature | v1 (POST /call/campaign) | v2 (POST /v2/call/campaign) |
|---|---|---|
| Agent ID Required | ✅ Yes | ❌ No |
| Same Agent for All Calls | ✅ Yes | ❌ No - Can vary |
| Flexibility | Lower | Higher |
| Use Case | Single-agent campaigns | Multi-agent or flexible campaigns |
{
"batch_id": "68433b7b0dee98e59245ebab",
"message": "Campaign created successfully",
"status": "success"
}
batch_id - you’ll need it to add calls to this campaign!
API key from https://callkaro.ai/dashboard/api-key
Campaign name for identification and organization
1 - 200"Inspection Campaign"