List Batch Job Items
client.Beta.Batch.JobItems.List(ctx, jobID, query) (*PaginatedBatchItems[BetaBatchJobItemListResponse], error)
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
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/llamacloud-prod-go"
"github.com/stainless-sdks/llamacloud-prod-go/option"
)
func main() {
client := llamacloudprod.NewClient(
option.WithAPIKey("My API Key"),
)
page, err := client.Beta.Batch.JobItems.List(
context.TODO(),
"job_id",
llamacloudprod.BetaBatchJobItemListParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}
{
"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
}