Run Job With Parsed File
POST/api/v1/extractionv2/jobs/parsed
Run Job With Parsed File
Request
Cookie Parameters
- application/json
Body
required
- MOD1
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
Array [
]
- ExtractConfig
- MOD1
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
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"
}
]
}