curl --request POST \
--url https://sa.dialgen.ai/api/v1/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agentId": "agent_clx123abc...",
"userId": "user_clx456def...",
"contacts": [
{
"id": "contact_clx789xyz...",
"phoneNumber": "+15551234567",
"name": "Jane Doe",
"email": "jane@example.com",
"company": "Acme Corp",
"metadata": {
"lead_score": 80
}
},
{
"phoneNumber": "+15557654321",
"name": "John Smith",
"email": "john@example.com",
"company": null,
"metadata": {
"account_id": "A123"
}
}
],
"options": {
"priority": 5,
"scheduledStartTime": "2025-11-16T09:00:00.000Z",
"timezone": "UTC",
"maxCallsPerSecond": 10,
"retryStrategy": {
"maxAttempts": 3,
"noAnswerDelay": 3600000,
"busyDelay": 300000
},
"webhooks": {
"onCallComplete": "https://api.your-crm.com/webhook/dialgen/call-complete"
},
"tags": [
"Q4_campaign",
"high_priority"
]
}
}
'