Create Batch Job
Create 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.
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
Changed in 2 of the 33 revisions of this API.8
- ○
added the optional property
detail/items/ctxto the response with the422statusresponse-optional-property-added
- ○
added the optional property
detail/items/inputto the response with the422statusresponse-optional-property-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the new
classify.runningenum value to the request propertyjob_config/anyOf[subschema #1: BatchParseJobRecordCreate]/parameters/anyOf[subschema #1: BatchParseJobConfig]/webhook_configurations/anyOf[subschema #1]/items/webhook_events/anyOf[subschema #1]/items/request-property-enum-value-added
- ○
added the new
sheets.cancelledenum value to the request propertyjob_config/anyOf[subschema #1: BatchParseJobRecordCreate]/parameters/anyOf[subschema #1: BatchParseJobConfig]/webhook_configurations/anyOf[subschema #1]/items/webhook_events/anyOf[subschema #1]/items/request-property-enum-value-added
- ○
added the new
sheets.errorenum value to the request propertyjob_config/anyOf[subschema #1: BatchParseJobRecordCreate]/parameters/anyOf[subschema #1: BatchParseJobConfig]/webhook_configurations/anyOf[subschema #1]/items/webhook_events/anyOf[subschema #1]/items/request-property-enum-value-added
- ○
added the new
sheets.partial_successenum value to the request propertyjob_config/anyOf[subschema #1: BatchParseJobRecordCreate]/parameters/anyOf[subschema #1: BatchParseJobConfig]/webhook_configurations/anyOf[subschema #1]/items/webhook_events/anyOf[subschema #1]/items/request-property-enum-value-added
- ○
added the new
sheets.pendingenum value to the request propertyjob_config/anyOf[subschema #1: BatchParseJobRecordCreate]/parameters/anyOf[subschema #1: BatchParseJobConfig]/webhook_configurations/anyOf[subschema #1]/items/webhook_events/anyOf[subschema #1]/items/request-property-enum-value-added
- ○
added the new
sheets.successenum value to the request propertyjob_config/anyOf[subschema #1: BatchParseJobRecordCreate]/parameters/anyOf[subschema #1: BatchParseJobConfig]/webhook_configurations/anyOf[subschema #1]/items/webhook_events/anyOf[subschema #1]/items/request-property-enum-value-added
- ○