cURL
curl --request GET \ --url https://api.trillet.ai/v1/api/batch-calls/{batchId}/status \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>'
{ "status": "<string>", "isComplete": true, "waiting": 123, "active": 123, "completed": 123, "failed": 123, "total": 123, "startTime": 123, "lastCompletedTime": 123, "completedTime": 123, "averageCallDuration": 123, "recent_calls": [ {} ], "error": "<string>" }
Get detailed progress information for a batch call operation
curl -X GET "https://api.trillet.ai/v1/api/batch-calls/batch_7891011121314/status" \ -H "x-api-key: YOUR_API_KEY" \ -H "x-workspace-id: YOUR_WORKSPACE_ID"
{ "status": "processing", "isComplete": false, "waiting": 45, "active": 5, "completed": 95, "failed": 5, "total": 150, "startTime": 1703097600000, "lastCompletedTime": 1703101200000, "completedTime": null, "averageCallDuration": 45.2, "recent_calls": [ { "jobId": "call_123", "status": "completed", "phone_number": "+1234567890", "completedAt": 1703101200000, "duration": 42 }, { "jobId": "call_124", "status": "failed", "phone_number": "+1987654321", "failedAt": 1703101150000, "error": "Number busy" } ] }
500