v5

latestOpenAPI 3.1.02026-08-04166362486.5 KB
parsing

Start a parse job

Start a parse job for the provided file.

Args: params: The parameters for creating a parse job.

Returns: The created parsing job.

post/v1/parsing/jobs

Request body

file_idstring required

The ID of the file to parse

element_typesElementType[] nullable

The elements to extract from the document

chunking_strategy'page'

Strategy used for chunking document content.

return_format'html' | 'markdown' | 'plain'

Format options for the returned document content.

mode'fast' | 'high_quality'

The mode of the document parser.

Response

The created parse job

idstring required

The ID of the job

file_idstring required

The ID of the file to parse

filenamestring nullable

The name of the file

status'pending' | 'in_progress' | 'cancelled' | 'completed' | 'failed' required
errorobject nullable

The error of the job

started_atstring date-time nullable

The started time of the job

finished_atstring date-time nullable

The finished time of the job

created_atstring date-time

The creation time of the job

updated_atstring date-time nullable

The updated time of the job

object'parsing_job'

The type of the object