curl --location '{{baseUrl}}/api/call/batches/64e5f12345abcdef12345678?page=1&limit=10&search=Marketing' \ --header 'Authorization: Bearer {{authToken}}'
{ "message": "Batches fetched successfully", "status": true, "code": 200, "errorMessage": "", "data": { "batches": [ { "_id": "64e5f12345abcdef98765432", "batchName": "Marketing Campaign May 2025", "totalCalls": 150, "callsPicked": 120, "callsCompleted": 100, "queue_status": "active", "createdAt": "2025-05-01T12:00:00.000Z", "updatedAt": "2025-05-15T14:30:00.000Z" }, { "_id": "64e5f12345abcdef98765433", "batchName": "Sales Outreach June 2025", "totalCalls": 200, "callsPicked": 150, "callsCompleted": 120, "queue_status": "paused", "createdAt": "2025-06-01T09:00:00.000Z", "updatedAt": "2025-06-10T16:45:00.000Z" } ], "pagination": { "total": 25, "page": 1, "limit": 10, "totalPages": 3 } } }
Retrieve a paginated list of all batches for an authenticated user with search capabilities.
batchName
queue_status
userId
isDeleted: false
search
GET /api/call/batch-details/{id}
Bearer token authentication for workspace access
Batches fetched successfully