In general, the recommended way to integrate with Extend in production is via workflows, using the Run Workflow endpoint.
This is due to several factors:
file parsing/pre-processing will automatically be reused across multiple processors, which will give you simplicity and cost savings given that many use cases will require multiple processors to be run on the same document.
workflows provide dedicated human in the loop document review, when needed.
workflows allow you to model and manage your pipeline with a single endpoint and corresponding UI for modeling and monitoring.
However, there are a number of legitimate use cases and systems where it might be easier to model the pipeline via code and run processors directly. This endpoint is provided for this purpose.Similar to workflow runs, processor runs are asynchronous and will return a status of PROCESSING until the run is complete.
You can configure webhooks to receive notifications when a processor run is complete or failed.
Body
string
required
The ID of the processor that will process the input. This ID can be fetched
from viewing the processor on the Extend platform.
object
A file object containing either a URL or base64 encoded content. Must contain
either fileUrl or fileBase64. Presigned URLs are recommended for most
production use cases. Supported file types can be found
here.
Hide properties
string
required
The name of the file.
string
A presigned URL for the file. Though we will download immediately, we
recommend a 5 - 15 minute expiration time.
string
deprecated
Base64 encoded content of the file. Can be used instead of fileUrl in development environments.DEPRECATED: This field is deprecated and will be removed in a future release. Use the /upload endpoint instead.
string
If you already have an Extend file id (for instance from running a parser or a previous file creation) then you can
run a processor via file id, and any parsed data will be reused.
string
A raw string to be processed. Can be used in place of file when passing raw
text data streams. Either file or rawText must be provided.
string
default:"latest"
An optional version of the processor to use. When not supplied, the most
recent published version of the processor will be used. Special values
include: - “latest” for the most recent published version (the default). If no
published versions, the draft version will be used. - “draft” for the draft
version. - Specific version numbers corresponding to versions your team has
published, e.g. “1.0”, “2.2”, etc.
number
default:"50"
An optional value used to determine the relative order of processor runs when
rate limiting is in effect. Priority values must be an integer between 1 and
100 inclusive. Lower values will be prioritized before higher values. The
default priority value is 50.
object
An optional object that can be passed in to identify the processor run in your
systems. It will be returned in the response and webhooks.
object
An option to override the config of the processor.
Extraction
Classification
Splitter
Show properties
string
required
Must be "EXTRACT" for extraction processors.
string
The base processor to use. For extractors, this is either "extraction_performance" or "extraction_light". See the base processor documentation for more details.
string
The version of the base processor to use (e.g. "4.0.0"). If this is provided, baseProcessor must be provided as well. See the processor changelog for available versions.
object
The schema that defines the structure of data to extract from documents. One of schema or fields must be provided. We recommend using schema as fields is deprecated. See the extraction processor schema documentation for more details.
array
deprecated
The schema that defines the structure of data to extract from documents. One of schema or fields must be provided. We recommend using schema as fields is deprecated. See the extraction processor schema documentation for more details on using the fields shape.
Show properties
string
required
Unique identifier for the field.
string
required
Human-readable name for the field.
string
required
Type of the field. Supported values:
string: Text values
number: Numeric values
currency: Monetary values
boolean: True/false values
date: Date values
array: Lists of values (requires schema)
enum: Values from a predefined list (requires enum)
object: Nested structure (requires schema)
signature: Signature information
string
required
Detailed description of the field, including expected content and format.
array
Required when type is “array” or “object”. Contains nested field definitions.
array
Required when type is “enum”. List of allowed values.
Show properties
string
required
The enum value.
string
required
Description of the enum value.
string
Custom rules to guide the extraction process in natural language.
object
Advanced configuration options.
Show properties
number
Limit processing to a specific number of pages from the beginning of the document.
string
Provide a hint about the document type (e.g. “invoice”, “receipt”, etc.).
string
Define specific key terms or concepts relevant to the document type.
boolean
Enable model reasoning insights in the extraction results.
boolean
Enable advanced multimodal processing for better handling of visual elements.
boolean
Enable citation information for extracted fields.
boolean
Enable advanced parsing of figures and diagrams in the document.
object
Options for controlling document chunking.
Show properties
string
Strategy for chunking the document. Supported values:
standard: Default chunking strategy
semantic: Content-aware chunking based on document structure
string
Custom rules for semantic chunking in natural language.
number
Number of pages per chunk.
string
Strategy for selecting chunks. Supported values:
intelligent: AI-based selection
confidence: Select based on confidence score
take_first: Always use first chunk
take_last: Always use last chunk
Show properties
string
required
Must be "CLASSIFY" for classification processors.
string
The base processor to use. For classifiers, must be "classification_performance" or "classification_light". See the base processor documentation for more details.
string
The version of the base processor to use (e.g. "3.2.0"). If this is provided, baseProcessor must be provided as well. See the processor changelog for available versions.
array
required
Array of possible classifications for the document.
Show properties
string
required
Unique identifier for the classification. We recommend lowercase, underscore-separated format.
string
required
Type identifier for the classification.
string
required
Detailed description of the classification.
string
Custom rules to guide the classification process in natural language.
object
Advanced configuration options.
Show properties
number
Limit processing to a specific number of pages from the beginning of the document.
string
The context to use for classification. Supported values:
defaultmax
boolean
Enable advanced multimodal processing for better handling of visual elements during classification.
Show properties
string
required
Must be "SPLITTER" for splitter processors.
string
The base processor to use. For splitters, this can currently only be "splitter_performance". See the base processor documentation for more details.
string
The version of the base processor to use (e.g. "1.0.0"). If this is provided, baseProcessor must be provided as well. See the processor changelog for available versions.
array
required
Array of classifications that define the possible types of document sections.
Show properties
string
required
Unique identifier for the split classification.
string
required
Type identifier for the split classification.
string
required
Detailed description of the document section type.
string
Custom rules to guide the document splitting process in natural language.
object
Advanced configuration options.
Show properties
number
Limit processing to a specific number of pages from the beginning of the document.
string
Method to use for splitting. Supported values:
high_precision: More accurate but potentially slower
A true or false value indicating whether the processor run was created
successfully.
object
Details about the created processor run.See the ProcessorRun object for more details.
Common errors
Returned when: - Required fields are missing (e.g., processorId) - Neither
file nor rawText is provided - Invalid files: - The provided fileUrl is
invalid - The provided fileBase64 is invalid - It’s an unsupported file type
The file is corrupted or otherwise cannot be downloaded - The priority
value is outside the allowed range (must be between 1 and 100)
Returned when: - The specified processor ID doesn’t exist - The specified
processor version doesn’t exist
Returned when: - The API token is missing - The API token is invalid
Returned when: - The authenticated workspace doesn’t have permission to access
the specified processor - The API token doesn’t have sufficient permissions
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Extend","colors":{"primary":"#12A7D3","light":"#81D7F7","dark":"#004E7A"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/tryextend/fwFG7xdTywjiFfYq/logo/light.png?fit=max\u0026auto=format\u0026n=fwFG7xdTywjiFfYq\u0026q=85\u0026s=d5b60497f53e7cb8865d11cf97636755","dark":"https://mintcdn.com/tryextend/fwFG7xdTywjiFfYq/logo/dark.png?fit=max\u0026auto=format\u0026n=fwFG7xdTywjiFfYq\u0026q=85\u0026s=2ba675637fc5f8ee673317eb7814ac38"},"api":{"playground":{"display":"none"},"mdx":{"server":null,"auth":{"method":"bearer","name":null}}},"background":{"image":"https://mintlify.s3.us-west-1.amazonaws.com/tryextend/background.png","decoration":null},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"tryextend","hasAudioNarration":false,"actualSubdomain":"tryextend","customDomains":["docs.extend.app"],"gitSource":{"type":"github","owner":"extend-hq","repo":"documentation-legacy","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae921fd5bfa35cf904494a3:success","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"API Reference","count":49},{"language":"default","tag":"Documentation","count":18},{"language":"default","tag":"Processor Endpoints","count":12},{"language":"default","tag":"Objects","count":11},{"language":"default","tag":"Workflow Endpoints","count":7},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Processor Changelog","count":5},{"language":"default","tag":"Studio","count":5},{"language":"default","tag":"Evaluation Set Endpoints","count":4},{"language":"default","tag":"File Endpoints","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/run_processor20250421","slug":"/api-reference/endpoint/run_processor20250421","pageMetadata":{"title":"Run Processor","api":"POST https://api-prod.extend.app/v1/processor_runs","description":"Run processors (extraction, classification, splitting, etc.) on a given document.","href":"/api-reference/endpoint/run_processor20250421"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Run processors (extraction, classification, splitting, etc.) on a given document.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField,Tab,Tabs}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`In general, the recommended way to integrate with Extend in production is via workflows, using the `,_jsx(_components.a,{href:`/api-reference/endpoint/run_workflow`,children:`Run Workflow`}),` endpoint.\nThis is due to several factors:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`file parsing/pre-processing will automatically be reused across multiple processors, which will give you simplicity and cost savings given that many use cases will require multiple processors to be run on the same document.`}),`\n`,_jsx(_components.li,{children:`workflows provide dedicated human in the loop document review, when needed.`}),`\n`,_jsx(_components.li,{children:`workflows allow you to model and manage your pipeline with a single endpoint and corresponding UI for modeling and monitoring.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`However, there are a number of legitimate use cases and systems where it might be easier to model the pipeline via code and run processors directly. This endpoint is provided for this purpose.`}),`\n`,_jsxs(_components.p,{children:[`Similar to workflow runs, processor runs are asynchronous and will return a status of `,_jsx(_components.code,{children:`PROCESSING`}),` until the run is complete.\nYou can `,_jsx(_components.a,{href:`/api-reference/webhooks`,children:`configure webhooks`}),` to receive notifications when a processor run is complete or failed.`]}),`\n`,_jsx(Heading,{level:`3`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`processorId`,type:`string`,required:true,id:`param-processor-id`,children:_jsx(_components.p,{children:`The ID of the processor that will process the input. This ID can be fetched\nfrom viewing the processor on the Extend platform.`})}),`\n`,_jsxs(ParamField,{body:`file`,type:`object`,id:`param-file`,children:[_jsxs(_components.p,{children:[`A file object containing either a URL or base64 encoded content. Must contain\neither fileUrl or fileBase64. Presigned URLs are recommended for most\nproduction use cases. Supported file types can be found\n`,_jsx(_components.a,{href:`/api-reference/supported_file_types`,children:`here`}),`.`]}),_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsx(ParamField,{body:`fileName`,type:`string`,required:true,id:`param-file-name`,children:_jsx(_components.p,{children:`The name of the file.`})}),_jsx(ParamField,{body:`fileUrl`,type:`string`,id:`param-file-url`,children:_jsx(_components.p,{children:`A presigned URL for the file. Though we will download immediately, we\nrecommend a 5 - 15 minute expiration time.`})}),_jsxs(ParamField,{body:`fileBase64`,type:`string`,deprecated:true,id:`param-file-base64`,children:[_jsx(_components.p,{children:`Base64 encoded content of the file. Can be used instead of fileUrl in development environments.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`DEPRECATED`}),`: This field is deprecated and will be removed in a future release. Use the `,_jsxs(_components.a,{href:`/api-reference/endpoint/upload_file`,children:[_jsx(_components.code,{children:`/upload`}),` endpoint`]}),` instead.`]})]}),_jsx(ParamField,{body:`fileId`,type:`string`,optional:true,id:`param-file-id`,children:_jsx(_components.p,{children:`If you already have an Extend file id (for instance from running a parser or a previous file creation) then you can\nrun a processor via file id, and any parsed data will be reused.`})})]})]}),`\n`,_jsx(ParamField,{body:`rawText`,type:`string`,optional:true,id:`param-raw-text`,children:_jsx(_components.p,{children:`A raw string to be processed. Can be used in place of file when passing raw\ntext data streams. Either file or rawText must be provided.`})}),`\n`,_jsx(ParamField,{body:`version`,type:`string`,default:`latest`,id:`param-version`,children:_jsx(_components.p,{children:`An optional version of the processor to use. When not supplied, the most\nrecent published version of the processor will be used. Special values\ninclude: - “latest” for the most recent published version (the default). If no\npublished versions, the draft version will be used. - “draft” for the draft\nversion. - Specific version numbers corresponding to versions your team has\npublished, e.g. “1.0”, “2.2”, etc.`})}),`\n`,_jsx(ParamField,{body:`priority`,type:`number`,default:`50`,id:`param-priority`,children:_jsx(_components.p,{children:`An optional value used to determine the relative order of processor runs when\nrate limiting is in effect. Priority values must be an integer between 1 and\n100 inclusive. Lower values will be prioritized before higher values. The\ndefault priority value is 50.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`An optional object that can be passed in to identify the processor run in your\nsystems. It will be returned in the response and webhooks.`})}),`\n`,_jsxs(ParamField,{body:`config`,type:`object`,optional:true,id:`param-config`,children:[_jsx(_components.p,{children:`An option to override the config of the processor.`}),_jsxs(Tabs,{children:[_jsx(Tab,{title:`Extraction`,id:`extraction`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`\"EXTRACT\"`}),` for extraction processors.`]})}),_jsx(ParamField,{body:`baseProcessor`,type:`string`,optional:true,id:`param-base-processor`,children:_jsxs(_components.p,{children:[`The base processor to use. For extractors, this is either `,_jsx(_components.code,{children:`\"extraction_performance\"`}),` or `,_jsx(_components.code,{children:`\"extraction_light\"`}),`. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`base processor documentation`}),` for more details.`]})}),_jsx(ParamField,{body:`baseVersion`,type:`string`,optional:true,id:`param-base-version`,children:_jsxs(_components.p,{children:[`The version of the base processor to use (e.g. `,_jsx(_components.code,{children:`\"4.0.0\"`}),`). If this is provided, `,_jsx(_components.code,{children:`baseProcessor`}),` must be provided as well. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`processor changelog`}),` for available versions.`]})}),_jsx(ParamField,{body:`schema`,type:`object`,id:`param-schema`,children:_jsxs(_components.p,{children:[`The schema that defines the structure of data to extract from documents. One of `,_jsx(_components.code,{children:`schema`}),` or `,_jsx(_components.code,{children:`fields`}),` must be provided. We recommend using `,_jsx(_components.code,{children:`schema`}),` as `,_jsx(_components.code,{children:`fields`}),` is deprecated. See the `,_jsx(_components.a,{href:`/api-reference/guides/processor_configs20250421#extraction-processor-schema-json-schema`,children:`extraction processor schema documentation`}),` for more details.`]})}),_jsxs(ParamField,{body:`fields`,type:`array`,deprecated:true,defaultOpen:true,id:`param-fields`,children:[_jsxs(_components.p,{children:[`The schema that defines the structure of data to extract from documents. One of `,_jsx(_components.code,{children:`schema`}),` or `,_jsx(_components.code,{children:`fields`}),` must be provided. We recommend using `,_jsx(_components.code,{children:`schema`}),` as `,_jsx(_components.code,{children:`fields`}),` is deprecated. See the `,_jsx(_components.a,{href:`/api-reference/guides/processor_configs20250421#extraction-processor-configuration`,children:`extraction processor schema documentation`}),` for more details on using the `,_jsx(_components.code,{children:`fields`}),` shape.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the field.`})}),_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Human-readable name for the field.`})}),_jsxs(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-1`,children:[_jsx(_components.p,{children:`Type of the field. Supported values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`string`}),`: Text values`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`number`}),`: Numeric values`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`currency`}),`: Monetary values`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`boolean`}),`: True/false values`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`date`}),`: Date values`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`array`}),`: Lists of values (requires schema)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`enum`}),`: Values from a predefined list (requires enum)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`object`}),`: Nested structure (requires schema)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`signature`}),`: Signature information`]}),`\n`]})]}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description`,children:_jsx(_components.p,{children:`Detailed description of the field, including expected content and format.`})}),_jsx(ParamField,{body:`schema`,type:`array`,optional:true,id:`param-schema-1`,children:_jsx(_components.p,{children:`Required when type is “array” or “object”. Contains nested field definitions.`})}),_jsxs(ParamField,{body:`enum`,type:`array`,optional:true,id:`param-enum`,children:[_jsx(_components.p,{children:`Required when type is “enum”. List of allowed values.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`value`,type:`string`,required:true,id:`param-value`,children:_jsx(_components.p,{children:`The enum value.`})}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description-1`,children:_jsx(_components.p,{children:`Description of the enum value.`})})]})]})]})]}),_jsx(ParamField,{body:`extractionRules`,type:`string`,optional:true,id:`param-extraction-rules`,children:_jsx(_components.p,{children:`Custom rules to guide the extraction process in natural language.`})}),_jsxs(ParamField,{body:`advancedOptions`,type:`object`,optional:true,id:`param-advanced-options`,children:[_jsx(_components.p,{children:`Advanced configuration options.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`fixedPageLimit`,type:`number`,optional:true,id:`param-fixed-page-limit`,children:_jsx(_components.p,{children:`Limit processing to a specific number of pages from the beginning of the document.`})}),_jsx(ParamField,{body:`documentKind`,type:`string`,optional:true,id:`param-document-kind`,children:_jsx(_components.p,{children:`Provide a hint about the document type (e.g. “invoice”, “receipt”, etc.).`})}),_jsx(ParamField,{body:`keyDefinitions`,type:`string`,optional:true,id:`param-key-definitions`,children:_jsx(_components.p,{children:`Define specific key terms or concepts relevant to the document type.`})}),_jsx(ParamField,{body:`modelReasoningInsightsEnabled`,type:`boolean`,optional:true,id:`param-model-reasoning-insights-enabled`,children:_jsx(_components.p,{children:`Enable model reasoning insights in the extraction results.`})}),_jsx(ParamField,{body:`advancedMultimodalEnabled`,type:`boolean`,optional:true,id:`param-advanced-multimodal-enabled`,children:_jsx(_components.p,{children:`Enable advanced multimodal processing for better handling of visual elements.`})}),_jsx(ParamField,{body:`citationsEnabled`,type:`boolean`,optional:true,id:`param-citations-enabled`,children:_jsx(_components.p,{children:`Enable citation information for extracted fields.`})}),_jsx(ParamField,{body:`advancedFigureParsingEnabled`,type:`boolean`,optional:true,id:`param-advanced-figure-parsing-enabled`,children:_jsx(_components.p,{children:`Enable advanced parsing of figures and diagrams in the document.`})}),_jsxs(ParamField,{body:`chunkingOptions`,type:`object`,optional:true,id:`param-chunking-options`,children:[_jsx(_components.p,{children:`Options for controlling document chunking.`}),_jsxs(Expandable,{title:`properties`,children:[_jsxs(ParamField,{body:`chunkingStrategy`,type:`string`,optional:true,id:`param-chunking-strategy`,children:[_jsx(_components.p,{children:`Strategy for chunking the document. Supported values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`standard`}),`: Default chunking strategy`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`semantic`}),`: Content-aware chunking based on document structure`]}),`\n`]})]}),_jsx(ParamField,{body:`customSemanticChunkingRules`,type:`string`,optional:true,id:`param-custom-semantic-chunking-rules`,children:_jsx(_components.p,{children:`Custom rules for semantic chunking in natural language.`})}),_jsx(ParamField,{body:`pageChunkSize`,type:`number`,optional:true,id:`param-page-chunk-size`,children:_jsx(_components.p,{children:`Number of pages per chunk.`})}),_jsxs(ParamField,{body:`chunkSelectionStrategy`,type:`string`,optional:true,id:`param-chunk-selection-strategy`,children:[_jsx(_components.p,{children:`Strategy for selecting chunks. Supported values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`intelligent`}),`: AI-based selection`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`confidence`}),`: Select based on confidence score`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`take_first`}),`: Always use first chunk`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`take_last`}),`: Always use last chunk`]}),`\n`]})]})]})]})]})]})]})}),_jsx(Tab,{title:`Classification`,id:`classification`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-2`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`\"CLASSIFY\"`}),` for classification processors.`]})}),_jsx(ParamField,{body:`baseProcessor`,type:`string`,optional:true,id:`param-base-processor-1`,children:_jsxs(_components.p,{children:[`The base processor to use. For classifiers, must be `,_jsx(_components.code,{children:`\"classification_performance\"`}),` or `,_jsx(_components.code,{children:`\"classification_light\"`}),`. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`base processor documentation`}),` for more details.`]})}),_jsx(ParamField,{body:`baseVersion`,type:`string`,optional:true,id:`param-base-version-1`,children:_jsxs(_components.p,{children:[`The version of the base processor to use (e.g. `,_jsx(_components.code,{children:`\"3.2.0\"`}),`). If this is provided, `,_jsx(_components.code,{children:`baseProcessor`}),` must be provided as well. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`processor changelog`}),` for available versions.`]})}),_jsxs(ParamField,{body:`classifications`,type:`array`,required:true,id:`param-classifications`,children:[_jsx(_components.p,{children:`Array of possible classifications for the document.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-1`,children:_jsx(_components.p,{children:`Unique identifier for the classification. We recommend lowercase, underscore-separated format.`})}),_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-3`,children:_jsx(_components.p,{children:`Type identifier for the classification.`})}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description-2`,children:_jsx(_components.p,{children:`Detailed description of the classification.`})})]})]}),_jsx(ParamField,{body:`classificationRules`,type:`string`,optional:true,id:`param-classification-rules`,children:_jsx(_components.p,{children:`Custom rules to guide the classification process in natural language.`})}),_jsxs(ParamField,{body:`advancedOptions`,type:`object`,optional:true,id:`param-advanced-options-1`,children:[_jsx(_components.p,{children:`Advanced configuration options.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`fixedPageLimit`,type:`number`,optional:true,id:`param-fixed-page-limit-1`,children:_jsx(_components.p,{children:`Limit processing to a specific number of pages from the beginning of the document.`})}),_jsx(ParamField,{body:`context`,type:`string`,optional:true,id:`param-context`,children:_jsxs(_components.p,{children:[`The context to use for classification. Supported values:\n`,_jsx(_components.code,{children:`default`}),` `,_jsx(_components.code,{children:`max`})]})}),_jsx(ParamField,{body:`advancedMultimodalEnabled`,type:`boolean`,optional:true,id:`param-advanced-multimodal-enabled-1`,children:_jsx(_components.p,{children:`Enable advanced multimodal processing for better handling of visual elements during classification.`})})]})]})]})}),_jsx(Tab,{title:`Splitter`,id:`splitter`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-4`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`\"SPLITTER\"`}),` for splitter processors.`]})}),_jsx(ParamField,{body:`baseProcessor`,type:`string`,optional:true,id:`param-base-processor-2`,children:_jsxs(_components.p,{children:[`The base processor to use. For splitters, this can currently only be `,_jsx(_components.code,{children:`\"splitter_performance\"`}),`. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`base processor documentation`}),` for more details.`]})}),_jsx(ParamField,{body:`baseVersion`,type:`string`,optional:true,id:`param-base-version-2`,children:_jsxs(_components.p,{children:[`The version of the base processor to use (e.g. `,_jsx(_components.code,{children:`\"1.0.0\"`}),`). If this is provided, `,_jsx(_components.code,{children:`baseProcessor`}),` must be provided as well. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`processor changelog`}),` for available versions.`]})}),_jsxs(ParamField,{body:`splitClassifications`,type:`array`,required:true,id:`param-split-classifications`,children:[_jsx(_components.p,{children:`Array of classifications that define the possible types of document sections.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-2`,children:_jsx(_components.p,{children:`Unique identifier for the split classification.`})}),_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-5`,children:_jsx(_components.p,{children:`Type identifier for the split classification.`})}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description-3`,children:_jsx(_components.p,{children:`Detailed description of the document section type.`})})]})]}),_jsx(ParamField,{body:`splitRules`,type:`string`,optional:true,id:`param-split-rules`,children:_jsx(_components.p,{children:`Custom rules to guide the document splitting process in natural language.`})}),_jsxs(ParamField,{body:`advancedOptions`,type:`object`,optional:true,id:`param-advanced-options-2`,children:[_jsx(_components.p,{children:`Advanced configuration options.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`fixedPageLimit`,type:`number`,optional:true,id:`param-fixed-page-limit-2`,children:_jsx(_components.p,{children:`Limit processing to a specific number of pages from the beginning of the document.`})}),_jsxs(ParamField,{body:`splitMethod`,type:`string`,optional:true,id:`param-split-method`,children:[_jsx(_components.p,{children:`Method to use for splitting. Supported values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`high_precision`}),`: More accurate but potentially slower`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`low_latency`}),`: Faster but potentially less precise`]}),`\n`]})]}),_jsx(ParamField,{body:`splitIdentifierRules`,type:`string`,optional:true,id:`param-split-identifier-rules`}),_jsx(ParamField,{body:`splitExcelDocumentsBySheetEnabled`,type:`boolean`,optional:true,id:`param-split-excel-documents-by-sheet-enabled`,children:_jsx(_components.p,{children:`For Excel documents, split by worksheet.`})})]})]})]})})]})]}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`A true or false value indicating whether the processor run was created\nsuccessfully.`})}),`\n`,_jsxs(ResponseField,{name:`processorRun`,type:`object`,id:`param-processor-run`,children:[_jsx(_components.p,{children:`Details about the created processor run.`}),_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/api-reference/objects/processor_run`,children:`ProcessorRun object`}),` for more details.`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`common-errors`,children:`Common errors`}),`\n`,_jsxs(ResponseField,{name:`400 Bad Request`,id:`param-400-bad-request`,children:[_jsxs(_components.p,{children:[`Returned when: - Required fields are missing (e.g., `,_jsx(_components.code,{children:`processorId`}),`) - Neither\n`,_jsx(_components.code,{children:`file`}),` nor `,_jsx(_components.code,{children:`rawText`}),` is provided - Invalid files: - The provided `,_jsx(_components.code,{children:`fileUrl`}),` is\ninvalid - The provided `,_jsx(_components.code,{children:`fileBase64`}),` is invalid - It’s an unsupported file type`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The file is corrupted or otherwise cannot be downloaded - The `,_jsx(_components.code,{children:`priority`}),`\nvalue is outside the allowed range (must be between 1 and 100)`]}),`\n`]})]}),`\n`,_jsx(ResponseField,{name:`404 Not Found`,id:`param-404-not-found`,children:_jsx(_components.p,{children:`Returned when: - The specified processor ID doesn’t exist - The specified\nprocessor version doesn’t exist`})}),`\n`,_jsx(ResponseField,{name:`401 Unauthorized`,id:`param-401-unauthorized`,children:_jsx(_components.p,{children:`Returned when: - The API token is missing - The API token is invalid`})}),`\n`,_jsx(ResponseField,{name:`403 Forbidden`,id:`param-403-forbidden`,children:_jsx(_components.p,{children:`Returned when: - The authenticated workspace doesn’t have permission to access\nthe specified processor - The API token doesn’t have sufficient permissions`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Run Processor","api":"POST https://api-prod.extend.app/v1/processor_runs","description":"Run processors (extraction, classification, splitting, etc.) on a given document.","href":"/api-reference/endpoint/run_processor20250421"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,RequestExample,ResponseExample,ResponseField,Tab,Tabs}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`In general, the recommended way to integrate with Extend in production is via workflows, using the `,_jsx(_components.a,{href:`/api-reference/endpoint/run_workflow`,children:`Run Workflow`}),` endpoint.\nThis is due to several factors:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`file parsing/pre-processing will automatically be reused across multiple processors, which will give you simplicity and cost savings given that many use cases will require multiple processors to be run on the same document.`}),`\n`,_jsx(_components.li,{children:`workflows provide dedicated human in the loop document review, when needed.`}),`\n`,_jsx(_components.li,{children:`workflows allow you to model and manage your pipeline with a single endpoint and corresponding UI for modeling and monitoring.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`However, there are a number of legitimate use cases and systems where it might be easier to model the pipeline via code and run processors directly. This endpoint is provided for this purpose.`}),`\n`,_jsxs(_components.p,{children:[`Similar to workflow runs, processor runs are asynchronous and will return a status of `,_jsx(_components.code,{children:`PROCESSING`}),` until the run is complete.\nYou can `,_jsx(_components.a,{href:`/api-reference/webhooks`,children:`configure webhooks`}),` to receive notifications when a processor run is complete or failed.`]}),`\n`,_jsx(Heading,{level:`3`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`processorId`,type:`string`,required:true,id:`param-processor-id`,children:_jsx(_components.p,{children:`The ID of the processor that will process the input. This ID can be fetched\nfrom viewing the processor on the Extend platform.`})}),`\n`,_jsxs(ParamField,{body:`file`,type:`object`,id:`param-file`,children:[_jsxs(_components.p,{children:[`A file object containing either a URL or base64 encoded content. Must contain\neither fileUrl or fileBase64. Presigned URLs are recommended for most\nproduction use cases. Supported file types can be found\n`,_jsx(_components.a,{href:`/api-reference/supported_file_types`,children:`here`}),`.`]}),_jsxs(Expandable,{title:`properties`,defaultOpen:true,children:[_jsx(ParamField,{body:`fileName`,type:`string`,required:true,id:`param-file-name`,children:_jsx(_components.p,{children:`The name of the file.`})}),_jsx(ParamField,{body:`fileUrl`,type:`string`,id:`param-file-url`,children:_jsx(_components.p,{children:`A presigned URL for the file. Though we will download immediately, we\nrecommend a 5 - 15 minute expiration time.`})}),_jsxs(ParamField,{body:`fileBase64`,type:`string`,deprecated:true,id:`param-file-base64`,children:[_jsx(_components.p,{children:`Base64 encoded content of the file. Can be used instead of fileUrl in development environments.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`DEPRECATED`}),`: This field is deprecated and will be removed in a future release. Use the `,_jsxs(_components.a,{href:`/api-reference/endpoint/upload_file`,children:[_jsx(_components.code,{children:`/upload`}),` endpoint`]}),` instead.`]})]}),_jsx(ParamField,{body:`fileId`,type:`string`,optional:true,id:`param-file-id`,children:_jsx(_components.p,{children:`If you already have an Extend file id (for instance from running a parser or a previous file creation) then you can\nrun a processor via file id, and any parsed data will be reused.`})})]})]}),`\n`,_jsx(ParamField,{body:`rawText`,type:`string`,optional:true,id:`param-raw-text`,children:_jsx(_components.p,{children:`A raw string to be processed. Can be used in place of file when passing raw\ntext data streams. Either file or rawText must be provided.`})}),`\n`,_jsx(ParamField,{body:`version`,type:`string`,default:`latest`,id:`param-version`,children:_jsx(_components.p,{children:`An optional version of the processor to use. When not supplied, the most\nrecent published version of the processor will be used. Special values\ninclude: - “latest” for the most recent published version (the default). If no\npublished versions, the draft version will be used. - “draft” for the draft\nversion. - Specific version numbers corresponding to versions your team has\npublished, e.g. “1.0”, “2.2”, etc.`})}),`\n`,_jsx(ParamField,{body:`priority`,type:`number`,default:`50`,id:`param-priority`,children:_jsx(_components.p,{children:`An optional value used to determine the relative order of processor runs when\nrate limiting is in effect. Priority values must be an integer between 1 and\n100 inclusive. Lower values will be prioritized before higher values. The\ndefault priority value is 50.`})}),`\n`,_jsx(ParamField,{body:`metadata`,type:`object`,id:`param-metadata`,children:_jsx(_components.p,{children:`An optional object that can be passed in to identify the processor run in your\nsystems. It will be returned in the response and webhooks.`})}),`\n`,_jsxs(ParamField,{body:`config`,type:`object`,optional:true,id:`param-config`,children:[_jsx(_components.p,{children:`An option to override the config of the processor.`}),_jsxs(Tabs,{children:[_jsx(Tab,{title:`Extraction`,id:`extraction`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`\"EXTRACT\"`}),` for extraction processors.`]})}),_jsx(ParamField,{body:`baseProcessor`,type:`string`,optional:true,id:`param-base-processor`,children:_jsxs(_components.p,{children:[`The base processor to use. For extractors, this is either `,_jsx(_components.code,{children:`\"extraction_performance\"`}),` or `,_jsx(_components.code,{children:`\"extraction_light\"`}),`. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`base processor documentation`}),` for more details.`]})}),_jsx(ParamField,{body:`baseVersion`,type:`string`,optional:true,id:`param-base-version`,children:_jsxs(_components.p,{children:[`The version of the base processor to use (e.g. `,_jsx(_components.code,{children:`\"4.0.0\"`}),`). If this is provided, `,_jsx(_components.code,{children:`baseProcessor`}),` must be provided as well. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`processor changelog`}),` for available versions.`]})}),_jsx(ParamField,{body:`schema`,type:`object`,id:`param-schema`,children:_jsxs(_components.p,{children:[`The schema that defines the structure of data to extract from documents. One of `,_jsx(_components.code,{children:`schema`}),` or `,_jsx(_components.code,{children:`fields`}),` must be provided. We recommend using `,_jsx(_components.code,{children:`schema`}),` as `,_jsx(_components.code,{children:`fields`}),` is deprecated. See the `,_jsx(_components.a,{href:`/api-reference/guides/processor_configs20250421#extraction-processor-schema-json-schema`,children:`extraction processor schema documentation`}),` for more details.`]})}),_jsxs(ParamField,{body:`fields`,type:`array`,deprecated:true,defaultOpen:true,id:`param-fields`,children:[_jsxs(_components.p,{children:[`The schema that defines the structure of data to extract from documents. One of `,_jsx(_components.code,{children:`schema`}),` or `,_jsx(_components.code,{children:`fields`}),` must be provided. We recommend using `,_jsx(_components.code,{children:`schema`}),` as `,_jsx(_components.code,{children:`fields`}),` is deprecated. See the `,_jsx(_components.a,{href:`/api-reference/guides/processor_configs20250421#extraction-processor-configuration`,children:`extraction processor schema documentation`}),` for more details on using the `,_jsx(_components.code,{children:`fields`}),` shape.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the field.`})}),_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`Human-readable name for the field.`})}),_jsxs(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-1`,children:[_jsx(_components.p,{children:`Type of the field. Supported values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`string`}),`: Text values`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`number`}),`: Numeric values`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`currency`}),`: Monetary values`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`boolean`}),`: True/false values`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`date`}),`: Date values`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`array`}),`: Lists of values (requires schema)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`enum`}),`: Values from a predefined list (requires enum)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`object`}),`: Nested structure (requires schema)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`signature`}),`: Signature information`]}),`\n`]})]}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description`,children:_jsx(_components.p,{children:`Detailed description of the field, including expected content and format.`})}),_jsx(ParamField,{body:`schema`,type:`array`,optional:true,id:`param-schema-1`,children:_jsx(_components.p,{children:`Required when type is “array” or “object”. Contains nested field definitions.`})}),_jsxs(ParamField,{body:`enum`,type:`array`,optional:true,id:`param-enum`,children:[_jsx(_components.p,{children:`Required when type is “enum”. List of allowed values.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`value`,type:`string`,required:true,id:`param-value`,children:_jsx(_components.p,{children:`The enum value.`})}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description-1`,children:_jsx(_components.p,{children:`Description of the enum value.`})})]})]})]})]}),_jsx(ParamField,{body:`extractionRules`,type:`string`,optional:true,id:`param-extraction-rules`,children:_jsx(_components.p,{children:`Custom rules to guide the extraction process in natural language.`})}),_jsxs(ParamField,{body:`advancedOptions`,type:`object`,optional:true,id:`param-advanced-options`,children:[_jsx(_components.p,{children:`Advanced configuration options.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`fixedPageLimit`,type:`number`,optional:true,id:`param-fixed-page-limit`,children:_jsx(_components.p,{children:`Limit processing to a specific number of pages from the beginning of the document.`})}),_jsx(ParamField,{body:`documentKind`,type:`string`,optional:true,id:`param-document-kind`,children:_jsx(_components.p,{children:`Provide a hint about the document type (e.g. “invoice”, “receipt”, etc.).`})}),_jsx(ParamField,{body:`keyDefinitions`,type:`string`,optional:true,id:`param-key-definitions`,children:_jsx(_components.p,{children:`Define specific key terms or concepts relevant to the document type.`})}),_jsx(ParamField,{body:`modelReasoningInsightsEnabled`,type:`boolean`,optional:true,id:`param-model-reasoning-insights-enabled`,children:_jsx(_components.p,{children:`Enable model reasoning insights in the extraction results.`})}),_jsx(ParamField,{body:`advancedMultimodalEnabled`,type:`boolean`,optional:true,id:`param-advanced-multimodal-enabled`,children:_jsx(_components.p,{children:`Enable advanced multimodal processing for better handling of visual elements.`})}),_jsx(ParamField,{body:`citationsEnabled`,type:`boolean`,optional:true,id:`param-citations-enabled`,children:_jsx(_components.p,{children:`Enable citation information for extracted fields.`})}),_jsx(ParamField,{body:`advancedFigureParsingEnabled`,type:`boolean`,optional:true,id:`param-advanced-figure-parsing-enabled`,children:_jsx(_components.p,{children:`Enable advanced parsing of figures and diagrams in the document.`})}),_jsxs(ParamField,{body:`chunkingOptions`,type:`object`,optional:true,id:`param-chunking-options`,children:[_jsx(_components.p,{children:`Options for controlling document chunking.`}),_jsxs(Expandable,{title:`properties`,children:[_jsxs(ParamField,{body:`chunkingStrategy`,type:`string`,optional:true,id:`param-chunking-strategy`,children:[_jsx(_components.p,{children:`Strategy for chunking the document. Supported values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`standard`}),`: Default chunking strategy`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`semantic`}),`: Content-aware chunking based on document structure`]}),`\n`]})]}),_jsx(ParamField,{body:`customSemanticChunkingRules`,type:`string`,optional:true,id:`param-custom-semantic-chunking-rules`,children:_jsx(_components.p,{children:`Custom rules for semantic chunking in natural language.`})}),_jsx(ParamField,{body:`pageChunkSize`,type:`number`,optional:true,id:`param-page-chunk-size`,children:_jsx(_components.p,{children:`Number of pages per chunk.`})}),_jsxs(ParamField,{body:`chunkSelectionStrategy`,type:`string`,optional:true,id:`param-chunk-selection-strategy`,children:[_jsx(_components.p,{children:`Strategy for selecting chunks. Supported values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`intelligent`}),`: AI-based selection`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`confidence`}),`: Select based on confidence score`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`take_first`}),`: Always use first chunk`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`take_last`}),`: Always use last chunk`]}),`\n`]})]})]})]})]})]})]})}),_jsx(Tab,{title:`Classification`,id:`classification`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-2`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`\"CLASSIFY\"`}),` for classification processors.`]})}),_jsx(ParamField,{body:`baseProcessor`,type:`string`,optional:true,id:`param-base-processor-1`,children:_jsxs(_components.p,{children:[`The base processor to use. For classifiers, must be `,_jsx(_components.code,{children:`\"classification_performance\"`}),` or `,_jsx(_components.code,{children:`\"classification_light\"`}),`. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`base processor documentation`}),` for more details.`]})}),_jsx(ParamField,{body:`baseVersion`,type:`string`,optional:true,id:`param-base-version-1`,children:_jsxs(_components.p,{children:[`The version of the base processor to use (e.g. `,_jsx(_components.code,{children:`\"3.2.0\"`}),`). If this is provided, `,_jsx(_components.code,{children:`baseProcessor`}),` must be provided as well. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`processor changelog`}),` for available versions.`]})}),_jsxs(ParamField,{body:`classifications`,type:`array`,required:true,id:`param-classifications`,children:[_jsx(_components.p,{children:`Array of possible classifications for the document.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-1`,children:_jsx(_components.p,{children:`Unique identifier for the classification. We recommend lowercase, underscore-separated format.`})}),_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-3`,children:_jsx(_components.p,{children:`Type identifier for the classification.`})}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description-2`,children:_jsx(_components.p,{children:`Detailed description of the classification.`})})]})]}),_jsx(ParamField,{body:`classificationRules`,type:`string`,optional:true,id:`param-classification-rules`,children:_jsx(_components.p,{children:`Custom rules to guide the classification process in natural language.`})}),_jsxs(ParamField,{body:`advancedOptions`,type:`object`,optional:true,id:`param-advanced-options-1`,children:[_jsx(_components.p,{children:`Advanced configuration options.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`fixedPageLimit`,type:`number`,optional:true,id:`param-fixed-page-limit-1`,children:_jsx(_components.p,{children:`Limit processing to a specific number of pages from the beginning of the document.`})}),_jsx(ParamField,{body:`context`,type:`string`,optional:true,id:`param-context`,children:_jsxs(_components.p,{children:[`The context to use for classification. Supported values:\n`,_jsx(_components.code,{children:`default`}),` `,_jsx(_components.code,{children:`max`})]})}),_jsx(ParamField,{body:`advancedMultimodalEnabled`,type:`boolean`,optional:true,id:`param-advanced-multimodal-enabled-1`,children:_jsx(_components.p,{children:`Enable advanced multimodal processing for better handling of visual elements during classification.`})})]})]})]})}),_jsx(Tab,{title:`Splitter`,id:`splitter`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-4`,children:_jsxs(_components.p,{children:[`Must be `,_jsx(_components.code,{children:`\"SPLITTER\"`}),` for splitter processors.`]})}),_jsx(ParamField,{body:`baseProcessor`,type:`string`,optional:true,id:`param-base-processor-2`,children:_jsxs(_components.p,{children:[`The base processor to use. For splitters, this can currently only be `,_jsx(_components.code,{children:`\"splitter_performance\"`}),`. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`base processor documentation`}),` for more details.`]})}),_jsx(ParamField,{body:`baseVersion`,type:`string`,optional:true,id:`param-base-version-2`,children:_jsxs(_components.p,{children:[`The version of the base processor to use (e.g. `,_jsx(_components.code,{children:`\"1.0.0\"`}),`). If this is provided, `,_jsx(_components.code,{children:`baseProcessor`}),` must be provided as well. See the `,_jsx(_components.a,{href:`/changelog/overview`,children:`processor changelog`}),` for available versions.`]})}),_jsxs(ParamField,{body:`splitClassifications`,type:`array`,required:true,id:`param-split-classifications`,children:[_jsx(_components.p,{children:`Array of classifications that define the possible types of document sections.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`id`,type:`string`,required:true,id:`param-id-2`,children:_jsx(_components.p,{children:`Unique identifier for the split classification.`})}),_jsx(ParamField,{body:`type`,type:`string`,required:true,id:`param-type-5`,children:_jsx(_components.p,{children:`Type identifier for the split classification.`})}),_jsx(ParamField,{body:`description`,type:`string`,required:true,id:`param-description-3`,children:_jsx(_components.p,{children:`Detailed description of the document section type.`})})]})]}),_jsx(ParamField,{body:`splitRules`,type:`string`,optional:true,id:`param-split-rules`,children:_jsx(_components.p,{children:`Custom rules to guide the document splitting process in natural language.`})}),_jsxs(ParamField,{body:`advancedOptions`,type:`object`,optional:true,id:`param-advanced-options-2`,children:[_jsx(_components.p,{children:`Advanced configuration options.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`fixedPageLimit`,type:`number`,optional:true,id:`param-fixed-page-limit-2`,children:_jsx(_components.p,{children:`Limit processing to a specific number of pages from the beginning of the document.`})}),_jsxs(ParamField,{body:`splitMethod`,type:`string`,optional:true,id:`param-split-method`,children:[_jsx(_components.p,{children:`Method to use for splitting. Supported values:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`high_precision`}),`: More accurate but potentially slower`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`low_latency`}),`: Faster but potentially less precise`]}),`\n`]})]}),_jsx(ParamField,{body:`splitIdentifierRules`,type:`string`,optional:true,id:`param-split-identifier-rules`}),_jsx(ParamField,{body:`splitExcelDocumentsBySheetEnabled`,type:`boolean`,optional:true,id:`param-split-excel-documents-by-sheet-enabled`,children:_jsx(_components.p,{children:`For Excel documents, split by worksheet.`})})]})]})]})})]})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Example Request`,numberOfLines:`15`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --location`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api-prod.extend.app/v1/processor_runs'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--header `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Authorization: Bearer \u003cAPI_TOKEN>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`--data `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"processorId\": \"dp_1234\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fileName\": \"example.pdf\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fileUrl\": \"https://test.s3.amazonaws.com/example.pdf\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"version\": \"1.0\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"priority\": 50,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"internal_id\": \"id_1234\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`33`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`33`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` axios`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"axios\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` runProcessor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` axios`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-prod.extend.app/v1/processor_runs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` processorId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dp_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` file:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fileName:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"example.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fileUrl:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://test.s3.amazonaws.com/example.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` version:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"1.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` priority:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` metadata:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` internal_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"id_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer \u003cAPI_TOKEN>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Processor run created:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`catch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Error:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ||`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`runProcessor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`26`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`26`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-prod.extend.app/v1/processor_runs\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer \u003cAPI_TOKEN>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"processorId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dp_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fileName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"example.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fileUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://test.s3.amazonaws.com/example.pdf\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"priority\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"internal_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"id_1234\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`try`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`payload, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Processor run created:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, response.json())`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`except`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.exceptions.RequestException `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` e:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Error:\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, e)`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`success`,type:`boolean`,id:`param-success`,children:_jsx(_components.p,{children:`A true or false value indicating whether the processor run was created\nsuccessfully.`})}),`\n`,_jsxs(ResponseField,{name:`processorRun`,type:`object`,id:`param-processor-run`,children:[_jsx(_components.p,{children:`Details about the created processor run.`}),_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/api-reference/objects/processor_run`,children:`ProcessorRun object`}),` for more details.`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`common-errors`,children:`Common errors`}),`\n`,_jsxs(ResponseField,{name:`400 Bad Request`,id:`param-400-bad-request`,children:[_jsxs(_components.p,{children:[`Returned when: - Required fields are missing (e.g., `,_jsx(_components.code,{children:`processorId`}),`) - Neither\n`,_jsx(_components.code,{children:`file`}),` nor `,_jsx(_components.code,{children:`rawText`}),` is provided - Invalid files: - The provided `,_jsx(_components.code,{children:`fileUrl`}),` is\ninvalid - The provided `,_jsx(_components.code,{children:`fileBase64`}),` is invalid - It’s an unsupported file type`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The file is corrupted or otherwise cannot be downloaded - The `,_jsx(_components.code,{children:`priority`}),`\nvalue is outside the allowed range (must be between 1 and 100)`]}),`\n`]})]}),`\n`,_jsx(ResponseField,{name:`404 Not Found`,id:`param-404-not-found`,children:_jsx(_components.p,{children:`Returned when: - The specified processor ID doesn’t exist - The specified\nprocessor version doesn’t exist`})}),`\n`,_jsx(ResponseField,{name:`401 Unauthorized`,id:`param-401-unauthorized`,children:_jsx(_components.p,{children:`Returned when: - The API token is missing - The API token is invalid`})}),`\n`,_jsx(ResponseField,{name:`403 Forbidden`,id:`param-403-forbidden`,children:_jsx(_components.p,{children:`Returned when: - The authenticated workspace doesn’t have permission to access\nthe specified processor - The API token doesn’t have sufficient permissions`})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Example Response`,numberOfLines:`34`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`34`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processorRun\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"document_processor_run\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dpr_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Will be null until the run is processed`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processorId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dp_5678\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processorVersionId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dpv_91011\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"processorName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invoice Extractor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PROCESSING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"metadata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"internal_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"id_1234\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reviewed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"edited\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"edits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EXTRACT\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"config\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"total_amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Total Amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"currency\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"files\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"example.pdf\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://dashboard.extend.app/runs/dpr_1234\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Run Processor","api":"POST https://api-prod.extend.app/v1/processor_runs","description":"Run processors (extraction, classification, splitting, etc.) on a given document.","href":"/api-reference/endpoint/run_processor20250421"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Body","slug":"body","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Common errors","slug":"common-errors","depth":3,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Example Request","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"15\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --location\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'https://api-prod.extend.app/v1/processor_runs'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--header \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Authorization: Bearer \u0026#x3C;API_TOKEN>'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">--data \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"processorId\": \"dp_1234\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"file\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"fileName\": \"example.pdf\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"fileUrl\": \"https://test.s3.amazonaws.com/example.pdf\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"version\": \"1.0\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"priority\": 50,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"metadata\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"internal_id\": \"id_1234\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Node.js","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"33\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> axios\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> require\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"axios\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> runProcessor\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> async\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> () \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">=>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> try\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> axios\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">post\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api-prod.extend.app/v1/processor_runs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> processorId:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"dp_1234\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> file:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> fileName:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"example.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> fileUrl:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://test.s3.amazonaws.com/example.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> version:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"1.0\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> priority:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 50\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> metadata:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> internal_id:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"id_1234\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> Authorization:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Bearer \u0026#x3C;API_TOKEN>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> );\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Processor run created:\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> } \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">catch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Error:\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">?.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> ||\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> error\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">message\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">};\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">runProcessor\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"26\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">url \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api-prod.extend.app/v1/processor_runs\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bearer \u0026#x3C;API_TOKEN>\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/json\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">payload \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"processorId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"dp_1234\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"file\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"fileName\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"example.pdf\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"fileUrl\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://test.s3.amazonaws.com/example.pdf\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"version\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"1.0\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"priority\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">50\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"internal_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"id_1234\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">try\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">:\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(url, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">payload, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response.raise_for_status()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Processor run created:\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, response.json())\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">except\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.exceptions.RequestException \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">as\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> e:\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Error:\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, e)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Example Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"34\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"success\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"processorRun\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"object\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"document_processor_run\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"dpr_1234\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"output\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">// Will be null until the run is processed\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"processorId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"dp_5678\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"processorVersionId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"dpv_91011\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"processorName\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Invoice Extractor\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PROCESSING\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"metadata\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"internal_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"id_1234\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"reviewed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"edited\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"edits\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"EXTRACT\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"config\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fields\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"total_amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Total Amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"currency\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"files\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"example.pdf\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://dashboard.extend.app/runs/dpr_1234\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Run Processor","path":"/v1/processor_runs","servers":[{"url":"https://api-prod.extend.app"}],"method":"post","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"processorId":[{"type":"string","description":"The ID of the processor that will process the input. This ID can be fetched from viewing the processor on the Extend platform.","required":true}],"file":[{"type":"object","properties":{"fileName":[{"type":"string","description":"The name of the file.","required":true}],"fileUrl":[{"type":"string","description":"A presigned URL for the file. Though we will download immediately, we recommend a 5 - 15 minute expiration time."}],"fileBase64":[{"type":"string","description":"Base64 encoded content of the file. Can be used instead of fileUrl in development environments. DEPRECATED : This field is deprecated and will be removed in a future release. Use the `/upload` endpoint instead.","deprecated":true}],"fileId":[{"type":"string","description":"If you already have an Extend file id (for instance from running a parser or a previous file creation) then you can run a processor via file id, and any parsed data will be reused."}]},"description":"A file object containing either a URL or base64 encoded content. Must contain either fileUrl or fileBase64. Presigned URLs are recommended for most production use cases. Supported file types can be found here ."}],"rawText":[{"type":"string","description":"A raw string to be processed. Can be used in place of file when passing raw text data streams. Either file or rawText must be provided."}],"version":[{"type":"string","description":"An optional version of the processor to use. When not supplied, the most recent published version of the processor will be used. Special values include: - “latest” for the most recent published version (the default). If no published versions, the draft version will be used. - “draft” for the draft version. - Specific version numbers corresponding to versions your team has published, e.g. “1.0”, “2.2”, etc."}],"priority":[{"type":"number","description":"An optional value used to determine the relative order of processor runs when rate limiting is in effect. Priority values must be an integer between 1 and 100 inclusive. Lower values will be prioritized before higher values. The default priority value is 50."}],"metadata":[{"type":"object","properties":{},"description":"An optional object that can be passed in to identify the processor run in your systems. It will be returned in the response and webhooks."}],"config":[{"type":"object","properties":{"type":[{"type":"string","description":"Must be `\"SPLITTER\"` for splitter processors.","required":true}],"baseProcessor":[{"type":"string","description":"The base processor to use. For splitters, this can currently only be `\"splitter_performance\"` . See the base processor documentation for more details."}],"baseVersion":[{"type":"string","description":"The version of the base processor to use (e.g. `\"1.0.0\"` ). If this is provided, `baseProcessor` must be provided as well. See the processor changelog for available versions."}],"schema":[{"type":"object","properties":{},"description":"The schema that defines the structure of data to extract from documents. One of `schema` or `fields` must be provided. We recommend using `schema` as `fields` is deprecated. See the extraction processor schema documentation for more details."}],"fields":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"Unique identifier for the field.","required":true}],"name":[{"type":"string","description":"Human-readable name for the field.","required":true}],"type":[{"type":"string","description":"Type of the field. Supported values: `string` : Text values `number` : Numeric values `currency` : Monetary values `boolean` : True/false values `date` : Date values `array` : Lists of values (requires schema) `enum` : Values from a predefined list (requires enum) `object` : Nested structure (requires schema) `signature` : Signature information","required":true}],"description":[{"type":"string","description":"Detailed description of the field, including expected content and format.","required":true}],"schema":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Required when type is “array” or “object”. Contains nested field definitions."}],"enum":[{"type":"array","items":[{"type":"object","properties":{"value":[{"type":"string","description":"The enum value.","required":true}],"description":[{"type":"string","description":"Description of the enum value.","required":true}]}}],"description":"Required when type is “enum”. List of allowed values."}]}}],"description":"The schema that defines the structure of data to extract from documents. One of `schema` or `fields` must be provided. We recommend using `schema` as `fields` is deprecated. See the extraction processor schema documentation for more details on using the `fields` shape.","deprecated":true}],"extractionRules":[{"type":"string","description":"Custom rules to guide the extraction process in natural language."}],"advancedOptions":[{"type":"object","properties":{"fixedPageLimit":[{"type":"number","description":"Limit processing to a specific number of pages from the beginning of the document."}],"splitMethod":[{"type":"string","description":"Method to use for splitting. Supported values: `high_precision` : More accurate but potentially slower `low_latency` : Faster but potentially less precise"}],"splitIdentifierRules":[{"type":"string"}],"splitExcelDocumentsBySheetEnabled":[{"type":"boolean","description":"For Excel documents, split by worksheet."}]},"description":"Advanced configuration options."}],"classifications":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"Unique identifier for the classification. We recommend lowercase, underscore-separated format.","required":true}],"type":[{"type":"string","description":"Type identifier for the classification.","required":true}],"description":[{"type":"string","description":"Detailed description of the classification.","required":true}]}}],"description":"Array of possible classifications for the document.","required":true}],"classificationRules":[{"type":"string","description":"Custom rules to guide the classification process in natural language."}],"splitClassifications":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"Unique identifier for the split classification.","required":true}],"type":[{"type":"string","description":"Type identifier for the split classification.","required":true}],"description":[{"type":"string","description":"Detailed description of the document section type.","required":true}]}}],"description":"Array of classifications that define the possible types of document sections.","required":true}],"splitRules":[{"type":"string","description":"Custom rules to guide the document splitting process in natural language."}]},"description":"An option to override the config of the processor."}]}}],"examples":{"example":{"value":{"processorId":"\u003cstring>","file":{"fileName":"\u003cstring>","fileUrl":"\u003cstring>","fileBase64":"\u003cstring>","fileId":"\u003cstring>"},"rawText":"\u003cstring>","version":"\u003cstring>","priority":123,"metadata":{},"config":{"type":"\u003cstring>","baseProcessor":"\u003cstring>","baseVersion":"\u003cstring>","schema":{},"fields":[{"id":"\u003cstring>","name":"\u003cstring>","type":"\u003cstring>","description":"\u003cstring>","schema":[{}],"enum":[{"value":"\u003cstring>","description":"\u003cstring>"}]}],"extractionRules":"\u003cstring>","advancedOptions":{"fixedPageLimit":123,"splitMethod":"\u003cstring>","splitIdentifierRules":"\u003cstring>","splitExcelDocumentsBySheetEnabled":true},"classifications":[{"id":"\u003cstring>","type":"\u003cstring>","description":"\u003cstring>"}],"classificationRules":"\u003cstring>","splitClassifications":[{"id":"\u003cstring>","type":"\u003cstring>","description":"\u003cstring>"}],"splitRules":"\u003cstring>"}}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"success":[{"type":"boolean","description":"A true or false value indicating whether the processor run was created successfully."}],"processorRun":[{"type":"object","properties":{},"description":"Details about the created processor run. See the ProcessorRun object for more details."}]}}],"examples":{"example":{"value":{"success":true,"processorRun":{}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"tryextend","siteName":"Extend","title":"Run Processor - Extend","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"2025-04-21":{"href":"/api-reference/endpoint/run_processor20250421","matchLevel":0},"2024-12-23":{"href":"/api-reference/endpoint/run_processor","matchLevel":2}},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T03:55:40.324Z","originalFileLocation":"api-reference/endpoint/run_processor20250421.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Run processors (extraction, classification, splitting, etc.) on a given document.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Extend\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tryextend/ARUs0RnNqdDjcqQq/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/tryextend/ARUs0RnNqdDjcqQq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tryextend/ARUs0RnNqdDjcqQq/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tryextend/ARUs0RnNqdDjcqQq/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tryextend/ARUs0RnNqdDjcqQq/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/tryextend/ARUs0RnNqdDjcqQq/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/tryextend/ARUs0RnNqdDjcqQq/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/tryextend/ARUs0RnNqdDjcqQq/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/tryextend/ARUs0RnNqdDjcqQq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Run Processor - Extend\">\u003cmeta data-mint-head property=\"og:description\" content=\"Run processors (extraction, classification, splitting, etc.) on a given document.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Extend\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.extend.app/api-reference/endpoint/run_processor20250421\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://tryextend.mintlify.site/_mintlify/api/og/v2?division=Processor+Endpoints\u0026amp;title=Run+Processor\u0026amp;description=Run+processors+%28extraction%2C+classification%2C+splitting%2C+etc.%29+on+a+given+document.\u0026amp;theme=a092852b4845b3f9207a97d5\u0026amp;signature=1d44fd6ab8257a3ee551c9353e37318e06ef02b19c1fc26bffe5357ba21be2d9\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Run Processor - Extend\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Run processors (extraction, classification, splitting, etc.) on a given document.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://tryextend.mintlify.site/_mintlify/api/og/v2?division=Processor+Endpoints\u0026amp;title=Run+Processor\u0026amp;description=Run+processors+%28extraction%2C+classification%2C+splitting%2C+etc.%29+on+a+given+document.\u0026amp;theme=a092852b4845b3f9207a97d5\u0026amp;signature=1d44fd6ab8257a3ee551c9353e37318e06ef02b19c1fc26bffe5357ba21be2d9\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/tryextend/ARUs0RnNqdDjcqQq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Extend\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#12A7D3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.extend.app/api-reference/endpoint/run_processor20250421\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/run_processor20250421.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.extend.app/#organization\",\"name\":\"Extend\",\"url\":\"https://docs.extend.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/tryextend/fwFG7xdTywjiFfYq/logo/light.png?fit=max\u0026auto=format\u0026n=fwFG7xdTywjiFfYq\u0026q=85\u0026s=d5b60497f53e7cb8865d11cf97636755\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.extend.app#website\",\"name\":\"Extend\",\"url\":\"https://docs.extend.app\",\"publisher\":{\"@id\":\"https://docs.extend.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.extend.app/api-reference/endpoint/run_processor20250421#webpage\",\"url\":\"https://docs.extend.app/api-reference/endpoint/run_processor20250421\",\"name\":\"Run Processor\",\"description\":\"Run processors (extraction, classification, splitting, etc.) on a given document.\",\"dateModified\":\"2026-01-07T03:55:40.324Z\",\"isPartOf\":{\"@id\":\"https://docs.extend.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.extend.app/api-reference/endpoint/run_processor20250421#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.extend.app/api-reference/endpoint/run_processor20250421#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Extend\",\"item\":\"https://docs.extend.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Run Processor\",\"item\":\"https://docs.extend.app/api-reference/endpoint/run_processor20250421\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.extend.app/api-reference/endpoint/run_processor20250421#apireference\",\"headline\":\"Run Processor\",\"name\":\"Run Processor\",\"description\":\"Run processors (extraction, classification, splitting, etc.) on a given document.\",\"url\":\"https://docs.extend.app/api-reference/endpoint/run_processor20250421\",\"mainEntityOfPage\":{\"@id\":\"https://docs.extend.app/api-reference/endpoint/run_processor20250421#webpage\"},\"dateModified\":\"2026-01-07T03:55:40.324Z\",\"publisher\":{\"@id\":\"https://docs.extend.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.extend.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Extend\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Extend\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/run_processor20250421.md","siteName":"Extend","nav":{"global":null,"versions":[{"version":"2025-04-21","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Authentication","href":"/api-reference/authentication"},{"title":"API Versioning","href":"/api-reference/api_versioning"}]},{"group":"Workflow Endpoints","pages":[{"title":"Run Workflow","api":"POST https://api-prod.extend.app/workflow_runs","href":"/api-reference/endpoint/run_workflow"},{"title":"Batch Run Workflow","api":"POST https://api-prod.extend.app/workflow_runs/batch","href":"/api-reference/endpoint/run_workflow_batch"},{"title":"Get Workflow Run","api":"GET https://api-prod.extend.app/workflow_runs/:workflowRunId","href":"/api-reference/endpoint/get_workflow_run"},{"title":"List Workflow Runs","api":"GET https://api-prod.extend.app/workflow_runs","href":"/api-reference/endpoint/list_workflow_runs"},{"title":"Update Workflow Run","api":"POST https://api-prod.extend.app/workflow_runs/:id","href":"/api-reference/endpoint/update_workflow_run"},{"title":"Correct Workflow Run Outputs","api":"POST https://api-prod.extend.app/workflow_runs/:workflowRunId/outputs/:outputId","href":"/api-reference/endpoint/correct_workflow_run"},{"title":"Create Workflow","api":"POST https://api-prod.extend.app/workflows","description":"Create a new workflow in Extend.","href":"/api-reference/endpoint/create_workflow"}]},{"group":"Processor Endpoints","pages":[{"title":"Run Processor","api":"POST https://api-prod.extend.app/v1/processor_runs","href":"/api-reference/endpoint/run_processor20250421"},{"title":"Get Processor Run","api":"GET https://api-prod.extend.app/processor_runs/{id}","description":"Retrieve details about a specific processor run, including its status, outputs, and any edits made during review.","href":"/api-reference/endpoint/get_processor_run"},{"title":"Get Batch Processor Run","api":"GET https://api-prod.extend.app/batch_processor_runs/{id}","href":"/api-reference/endpoint/get_batch_processor_run"},{"title":"Create Processor","api":"POST https://api-prod.extend.app/v1/processors","href":"/api-reference/endpoint/create_processor20250421"},{"title":"Update Processor","api":"POST https://api-prod.extend.app/v1/processors/:id","href":"/api-reference/endpoint/update_processor20250421"},{"title":"Publish Processor Version","api":"POST https://api-prod.extend.app/v1/processors/:id/publish","href":"/api-reference/endpoint/publish_processor_version20250421"},{"title":"Get Processor Version","api":"GET https://api-prod.extend.app/processors/:ProcessorId/versions/:processorVersionId","href":"/api-reference/endpoint/get_processor_version"},{"title":"List Processor Versions","api":"GET https://api-prod.extend.app/processors/:id/versions","href":"/api-reference/endpoint/get_processor_versions"}]},{"group":"Parse Endpoints","pages":[{"title":"Parse File","api":"POST https://api-prod.extend.app/parse","href":"/api-reference/endpoint/parse"}]},{"group":"File Endpoints","pages":[{"title":"Upload File","api":"POST https://api-prod.extend.app/files/upload","href":"/api-reference/endpoint/upload_file"},{"title":"Get File","api":"GET https://api-prod.extend.app/files/:id?rawText=true","href":"/api-reference/endpoint/get_file"},{"title":"List Files","api":"GET https://api-prod.extend.app/files","href":"/api-reference/endpoint/list_files"},{"title":"[DEPRECATED] Create File","api":"POST https://api-prod.extend.app/files","href":"/api-reference/endpoint/create_file"}]},{"group":"Evaluation Set Endpoints","pages":[{"title":"Create Evaluation Set","api":"POST https://api-prod.extend.app/evaluation_sets","href":"/api-reference/endpoint/create_eval_set"},{"title":"Create Evaluation Set Item","api":"POST https://api-prod.extend.app/evaluation_set_items","href":"/api-reference/endpoint/create_eval_set_item"},{"title":"Update Evaluation Set Item","api":"POST https://api-prod.extend.app/evaluation_set_items/:id","href":"/api-reference/endpoint/update_eval_set_item"},{"title":"Bulk Create Evaluation Set Items","api":"POST https://api-prod.extend.app/evaluation_set_items/bulk","href":"/api-reference/endpoint/bulk_create_eval_set_item"}]},{"group":"Objects","pages":[{"title":"The Block Object","href":"/api-reference/objects/block"},{"title":"The EvaluationSet object","href":"/api-reference/objects/evaluation_set"},{"title":"The EvaluationSetItem object","href":"/api-reference/objects/evaluation_set_item"},{"title":"The File object","href":"/api-reference/objects/file"},{"title":"The Processor object","href":"/api-reference/objects/processor"},{"title":"The ProcessorRun object","href":"/api-reference/objects/processor_run"},{"title":"The BatchProcessorRun object","href":"/api-reference/objects/batch_processor_run"},{"title":"The ProcessorVersion object","href":"/api-reference/objects/processor_version"},{"title":"The Workflow object","href":"/api-reference/objects/workflow"},{"title":"The WorkflowRun object","href":"/api-reference/objects/workflow_run"},{"title":"The WorkflowRun Summary object","href":"/api-reference/objects/workflow_run_summary"}]},{"group":"Guides","pages":[{"title":"Processor configs","href":"/api-reference/guides/processor_configs20250421"},{"title":"Processor output types","href":"/api-reference/guides/output_types20250421"},{"title":null,"href":"/api-reference/guides/bounding_boxes"},{"title":"Supported File Types","href":"/api-reference/supported_file_types"}]},{"group":"Webhooks","pages":[{"title":"Configuration","href":"/api-reference/webhooks/webhooks"},{"title":"Events","href":"/api-reference/webhooks/events"}]}]},{"tab":"Processor Changelog","pages":[{"title":"Processor Changelog","href":"/changelog/overview"}]}]},{"version":"2024-12-23","pages":[{"title":"2024-12-23","href":"/api-reference/endpoint/run_processor"}]}]},"basePath":"","title":"Run Processor - Extend","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-B8kPdtB2.js","snippetPresets-C-p1aFQ1.js","utils-B9NnUZSZ.js","style-to-object-BY3JEAdk.js","utils-DFxl7cW2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-bSr9h7OB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Bw4Gcy_r.js","_Uint8Array-C68x8Gny.js","isObject-FP1Yky1u.js","ApiExamples-BXsp8PHs.js","usePlaygroundInputsStore-BlAOLmIF.js","shallow-C2F02mqa.js","isEqual-C8iG4q2G.js","CodeSnippets-45lHR04X.js","CodeSnippet-6Cemznl-.js","use-playground-group-access-Cyy8SXp5.js","Page-CeZ_ZB5X.js","api-description-markdown-DiOdv5rp.js","DynamicMarkdown-B_9ywLDq.js","SectionHeading-Cc2r-uqU.js","MethodPill-Df3Tcu4c.js","getPastedJson-B3vrV0wE.js","Check2Icon-YQhSFafd.js","axios-CsQoIw0U.js"]}