Skip to main content

List Batch Calls

GET List calls in a batch

GET /api/v1/public/call-batches/{batch_id}/calls

Retrieve a paginated list of all calls within a specific batch. Filter by status or external ID to find specific contacts.

Authorization

Authorization: Bearer sk_your_api_key

Path Parameters

ParameterTypeRequiredDescription
batch_idstringThe batch/schedule ID

Query Parameters

ParameterTypeRequiredDescription
statusstringFilter by call status: pending, completed, failed, etc.
external_idstringFilter by your contact's external/contact ID
limitintegerResults per page. Default: 100, Max: 500
pageintegerPage number. Default: 1

Code Examples

curl -X GET "https://api.staging.techladder.ai/api/v1/public/call-batches/sched_bdb2b840/calls?status=pending&external_id=101&limit=100&page=1" \
-H "Authorization: Bearer sk_your_api_key" \
-H "Accept: application/json"

Responses

200 OK

A paginated list of calls within the batch.

{
"status_code": 200,
"message": "Batch calls fetched successfully",
"error": null,
"data": {
"items": [
{
"call_id": "call_a1b2c3d4",
"external_id": "101",
"phone_number": "919876543210",
"name": "John Doe",
"status": "pending",
"duration_seconds": null,
"started_at": null,
"ended_at": null,
"metadata": {
"Name": "John Doe",
"Company Name": "Acme Corporation"
}
}
],
"total": 1,
"page": 1,
"limit": 100,
"has_more": false
}
}

401 Unauthorized

Returned when the API key is missing or invalid.

{
"status_code": 401,
"message": "Missing or invalid API key",
"error": {
"code": "UNAUTHORIZED",
"details": ["Provide a valid Bearer token in the Authorization header"]
},
"data": null
}

404 Not Found

Returned when the batch does not exist or is not owned by your account.

{
"status_code": 404,
"message": "Batch not found",
"error": {
"code": "NOT_FOUND",
"details": ["No batch found with id sched_bdb2b840"]
},
"data": null
}

Call Status Values

StatusDescription
pendingCall not yet initiated
queuedCall queued for dialing
ringingCall is ringing
answeredCall was answered
in_progressCall is active
completedCall finished successfully
failedCall failed (network/system error)
no_answerRecipient did not answer
busyRecipient line was busy
cancelledCall was cancelled before connecting