curl --request GET \
--url https://api.bland.ai/v2/batches/{batch_id}/logs \
--header 'authorization: <authorization>'{
"data": [
{
"id": "6398342c-d7de-4a11-ba86-3d86e5746699",
"batch_id": "f6ef9224-0ec3-43e4-98a1-bb2a8765d110",
"org_id": "f52eb4b2-c8b6-44a6-a36c-2749aa930c86",
"event_type": "complete",
"timestamp": "2025-05-08T19:28:42.748Z",
"payload": {
"calls_total": 1,
"calls_failed": 0,
"calls_successful": 1
}
},
{
"id": "a24616b4-be8f-42e4-be29-4c5ec005756c",
"batch_id": "f6ef9224-0ec3-43e4-98a1-bb2a8765d110",
"org_id": "f52eb4b2-c8b6-44a6-a36c-2749aa930c86",
"event_type": "lifecycle",
"timestamp": "2025-05-08T19:28:15.560Z",
"payload": {
"message": "Requested: 1. Validated: 1. Dispatched: 1. CPS: 1.12.",
"state_change": "in_progress"
}
}
],
"errors": null
}
Retrieve logs for a specific batch.
curl --request GET \
--url https://api.bland.ai/v2/batches/{batch_id}/logs \
--header 'authorization: <authorization>'{
"data": [
{
"id": "6398342c-d7de-4a11-ba86-3d86e5746699",
"batch_id": "f6ef9224-0ec3-43e4-98a1-bb2a8765d110",
"org_id": "f52eb4b2-c8b6-44a6-a36c-2749aa930c86",
"event_type": "complete",
"timestamp": "2025-05-08T19:28:42.748Z",
"payload": {
"calls_total": 1,
"calls_failed": 0,
"calls_successful": 1
}
},
{
"id": "a24616b4-be8f-42e4-be29-4c5ec005756c",
"batch_id": "f6ef9224-0ec3-43e4-98a1-bb2a8765d110",
"org_id": "f52eb4b2-c8b6-44a6-a36c-2749aa930c86",
"event_type": "lifecycle",
"timestamp": "2025-05-08T19:28:15.560Z",
"payload": {
"message": "Requested: 1. Validated: 1. Dispatched: 1. CPS: 1.12.",
"state_change": "in_progress"
}
}
],
"errors": null
}
"asc" or "desc" (default is "desc")."lifecycle", "complete"event_type.null on success.{
"data": [
{
"id": "6398342c-d7de-4a11-ba86-3d86e5746699",
"batch_id": "f6ef9224-0ec3-43e4-98a1-bb2a8765d110",
"org_id": "f52eb4b2-c8b6-44a6-a36c-2749aa930c86",
"event_type": "complete",
"timestamp": "2025-05-08T19:28:42.748Z",
"payload": {
"calls_total": 1,
"calls_failed": 0,
"calls_successful": 1
}
},
{
"id": "a24616b4-be8f-42e4-be29-4c5ec005756c",
"batch_id": "f6ef9224-0ec3-43e4-98a1-bb2a8765d110",
"org_id": "f52eb4b2-c8b6-44a6-a36c-2749aa930c86",
"event_type": "lifecycle",
"timestamp": "2025-05-08T19:28:15.560Z",
"payload": {
"message": "Requested: 1. Validated: 1. Dispatched: 1. CPS: 1.12.",
"state_change": "in_progress"
}
}
],
"errors": null
}
Was this page helpful?