List Batch Job Items
client.beta.batch.jobItems.list(stringjobID, JobItemListParams { limit, offset, organization_id, 2 more } query?, RequestOptionsoptions?): PaginatedBatchItems<JobItemListResponse { item_id, item_name, status, 7 more } >
GET/api/v1/beta/batch-processing/{job_id}/items
List items in a batch job with optional status filtering.
Useful for finding failed items, viewing completed items, or debugging processing issues.
List Batch Job Items
import LlamaCloud from '@llamaindex/llama-cloud';
const client = new LlamaCloud({
apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const jobItemListResponse of client.beta.batch.jobItems.list('job_id')) {
console.log(jobItemListResponse.item_id);
}{
"items": [
{
"item_id": "item_id",
"item_name": "item_name",
"status": "pending",
"completed_at": "2019-12-27T18:11:19.117Z",
"effective_at": "2019-12-27T18:11:19.117Z",
"error_message": "error_message",
"job_id": "job_id",
"job_record_id": "job_record_id",
"skip_reason": "skip_reason",
"started_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}Returns Examples
{
"items": [
{
"item_id": "item_id",
"item_name": "item_name",
"status": "pending",
"completed_at": "2019-12-27T18:11:19.117Z",
"effective_at": "2019-12-27T18:11:19.117Z",
"error_message": "error_message",
"job_id": "job_id",
"job_record_id": "job_record_id",
"skip_reason": "skip_reason",
"started_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}