Run Job With Parsed File Test
POST/api/v1/extractionv2/jobs/parsed/test
Run Job With Parsed File Test
Request
Cookie Parameters
- application/json
Body
required
- MOD1
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
Array [
]
- ExtractConfig
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
job_create
object
required
Schema for creating an extraction job.
The id of the extraction agent
The id of the file
data_schema_override
object
The data schema to override the extraction agent's data schema with
anyOf
property name*
object
anyOf
object
string
integer
number
boolean
config_override
object
The config to override the extraction agent's config with
anyOf
Additional parameters for the extraction agent.
The extraction mode specified.
Possible values: [PER_DOC
, PER_PAGE
]
PER_DOC
Whether to handle missing fields in the schema.
false
system_prompt
object
The system prompt to use for the extraction.
anyOf
string
extract_settings
object
All settings for the extraction agent. Only the settings in ExtractConfig are exposed to the user.
The model to use for the extraction.
gpt-4o
The temperature to use for the extraction.
0
The maximum file size (in bytes) allowed for the document.
5242880
The maximum number of pages allowed for the document.
30
The prompt to use for the extraction.
The extracted data using the given JSON schema.
The prompt to use for error handling.
If the text does not contain enough information to comply with the schema, explain the reason. Else, output null and fill out the 'extracted' field.
llama_parse_params
object
Settings that can be configured for how to use LlamaParse to parse files within a LlamaCloud pipeline.
Possible values: [af
, az
, bs
, cs
, cy
, da
, de
, en
, es
, et
, fr
, ga
, hr
, hu
, id
, is
, it
, ku
, la
, lt
, lv
, mi
, ms
, mt
, nl
, no
, oc
, pi
, pl
, pt
, ro
, rs_latin
, sk
, sl
, sq
, sv
, sw
, tl
, tr
, uz
, vi
, ar
, fa
, ug
, ur
, bn
, as
, mni
, ru
, rs_cyrillic
, be
, bg
, uk
, mn
, abq
, ady
, kbd
, ava
, dar
, inh
, che
, lbe
, lez
, tab
, tjk
, hi
, mr
, ne
, bh
, mai
, ang
, bho
, mah
, sck
, new
, gom
, sa
, bgc
, th
, ch_sim
, ch_tra
, ja
, ko
, ta
, te
, kn
], >= 1
false
false
false
false
false
false
false
false
false
false
false
false
false
false
false
false
page_separator
object
anyOf
string
bbox_top
object
anyOf
number
bbox_right
object
anyOf
number
bbox_bottom
object
anyOf
number
bbox_left
object
anyOf
number
false
false
true
false
false
project_id
object
anyOf
string
azure_openai_deployment_name
object
anyOf
string
azure_openai_endpoint
object
anyOf
string
azure_openai_api_version
object
anyOf
string
azure_openai_key
object
anyOf
string
input_url
object
anyOf
string
http_proxy
object
anyOf
string
false
auto_mode_trigger_on_regexp_in_page
object
anyOf
string
auto_mode_trigger_on_text_in_page
object
anyOf
string
false
false
false
structured_output_json_schema
object
anyOf
string
structured_output_json_schema_name
object
anyOf
string
max_pages
object
anyOf
integer
max_pages_enforced
object
anyOf
integer
false
formatting_instruction
object
anyOf
string
complemental_formatting_instruction
object
anyOf
string
content_guideline_instruction
object
anyOf
string
false
job_timeout_in_seconds
object
anyOf
number
job_timeout_extra_time_per_page_in_seconds
object
anyOf
number
false
false
false
false
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
Array [
]
Array [
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
Array [
]
]
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
Array [
]
The id of the extraction run
The id of the extraction agent
data
object
required
The data extracted from the file
anyOf
property name*
object
anyOf
object
string
integer
number
boolean
property name*
object
anyOf
object
string
integer
number
boolean
extraction_metadata
object
required
The metadata extracted from the file
property name*
object
anyOf
object
string
integer
number
boolean
{
"run_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"extraction_agent_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"data": {},
"extraction_metadata": {}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}