Create Batch Job
Changed onCreate a batch processing job.
Processes files from a directory or a specific list of item IDs. Supports batch parsing and classification operations.
Provide either directory_id to process all files in a directory, or item_ids for specific items. The job runs asynchronously — poll GET /batch/{job_id} for progress.
Request
- The document declares no server URL.
- Auth: HTTP bearer
Query parameters
Headers
Cookies
Request body
Example request
{
"directory_id": "dir-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"item_ids": [
"dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"dfl-11111111-2222-3333-4444-555555555555"
],
"job_config": {
"parameters": {
"webhook_configurations": [
{
"webhook_url": "https://example.com/webhooks/llamacloud",
"webhook_headers": {
"Authorization": "Bearer sk-..."
},
"webhook_events": [
"parse.success",
"parse.error"
],
"webhook_output_format": "json"
}
]
}
}
}Response
Successful Response
Example response
{
"id": "bjb-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"project_id": "proj-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"directory_id": "dir-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
added the new
classify.runningenum value to the request property///////// - info
added the new
sheets.cancelledenum value to the request property///////// - info
added the new
sheets.errorenum value to the request property///////// - info
added the new
sheets.partial_successenum value to the request property///////// - info
added the new
sheets.pendingenum value to the request property///////// - info
added the new
sheets.successenum value to the request property/////////
- info