Create Split Job
Changed onCreate a split job.
Document input
Set file_input to a file ID or a completed parse job ID (pjb-...). Supplying a parse job reuses its output instead of reading the document again.
Page selection
configuration.target_pages selects which pages of a supplied parse job to split (1-based; 1-50, 1,3,5-7). Pages are read in ascending document order, and each segment's pages are the parse job's own page numbers, so segments map straight back to the original document. Requires a parse job as file_input; passing it with a file ID returns 400.
Parse settings
configuration.parse_tier and configuration.parse_config_id control how the document is read before splitting; both are ignored when a parse job is supplied. A parse configuration restricted to a page subset (target_pages or max_pages) is rejected, since split results always number pages relative to the full document.
The job runs asynchronously. Poll GET /split/jobs/{split_job_id} or register a webhook to monitor completion.
Request
- Base URL: https://api.cloud.llamaindex.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.cloud.llamaindex.ai/api/v1/split/jobs
- Auth: HTTP bearer
Query parameters
Cookies
Request body
Example request
{
"transaction_id": "tx-unique-idempotency-key",
"webhook_configuration_ids": [
"whc-...",
"whc-..."
],
"webhook_configurations": [
{
"webhook_url": "https://example.com/webhooks/llamacloud",
"webhook_headers": {
"Authorization": "Bearer sk-..."
},
"webhook_signing_secret": "whsec_...",
"webhook_events": [
"parse.success",
"parse.error"
],
"webhook_output_format": "json"
}
],
"configuration_id": "cfg-11111111-2222-3333-4444-555555555555",
"configuration": {
"splitting_strategy": {
"custom_instructions": "Start a new segment at every signature page."
},
"version": "latest",
"parse_tier": "fast",
"parse_config_id": "cfg-11111111-2222-3333-4444-555555555555",
"target_pages": "1,3,5-7"
},
"file_input": "dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}Response
Successful Response
Example response
{
"file_input": "dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"splitting_strategy": {
"custom_instructions": "Start a new segment at every signature page."
},
"version": "1.1.0"
}Changes
- info
added the required property
to the response with the status
- info
- info
endpoint added
- info