Skip to main content
POST
Start Extraction Job

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request model for starting a structured extraction job.

document_id
string
required

ID of the document to extract from

schema_id
string
required

ID of the schema to use for extraction

config
ExtractConfig · object | null

Configuration options for the extraction process

stream
boolean
default:false

Whether to stream the results as they become available. If true, the response will be a stream of JSON objects.

Response

Successful Response

Response model for extraction job creation.

job_id
string
required

Unique ID of the extraction job

status
enum<string>
required

Current status of the job

Available options:
pending,
processing,
retrying,
completed,
failed,
cancelled
created_at
string
required

Timestamp when the job was created

estimated_completion
string
required

Estimated completion time