curl --request POST \
--url https://api-prod.extend.app/v1/processors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "<string>",
"cloneProcessorId": "<string>",
"config": {
"type": "<string>",
"baseProcessor": "<string>",
"baseVersion": "<string>",
"schema": {},
"fields": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"description": "<string>",
"schema": [
{}
],
"enum": [
{
"value": "<string>",
"description": "<string>"
}
]
}
],
"extractionRules": "<string>",
"advancedOptions": {
"fixedPageLimit": 123,
"splitMethod": "<string>",
"splitIdentifierRules": "<string>",
"splitExcelDocumentsBySheetEnabled": true
},
"classifications": [
{
"id": "<string>",
"type": "<string>",
"description": "<string>"
}
],
"classificationRules": "<string>",
"splitClassifications": [
{
"id": "<string>",
"type": "<string>",
"description": "<string>"
}
],
"splitRules": "<string>"
}
}
'{
"success": true,
"processor": {
"object": "document_processor",
"id": "processor_1234",
"name": "New Invoice Processor",
"type": "EXTRACT",
"createdAt": "2024-03-01T12:00:00Z",
"updatedAt": "2024-03-01T12:00:00Z"
}
}
Create a new processor in Extend, optionally cloning from an existing processor.
curl --request POST \
--url https://api-prod.extend.app/v1/processors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "<string>",
"cloneProcessorId": "<string>",
"config": {
"type": "<string>",
"baseProcessor": "<string>",
"baseVersion": "<string>",
"schema": {},
"fields": [
{
"id": "<string>",
"name": "<string>",
"type": "<string>",
"description": "<string>",
"schema": [
{}
],
"enum": [
{
"value": "<string>",
"description": "<string>"
}
]
}
],
"extractionRules": "<string>",
"advancedOptions": {
"fixedPageLimit": 123,
"splitMethod": "<string>",
"splitIdentifierRules": "<string>",
"splitExcelDocumentsBySheetEnabled": true
},
"classifications": [
{
"id": "<string>",
"type": "<string>",
"description": "<string>"
}
],
"classificationRules": "<string>",
"splitClassifications": [
{
"id": "<string>",
"type": "<string>",
"description": "<string>"
}
],
"splitRules": "<string>"
}
}
'{
"success": true,
"processor": {
"object": "document_processor",
"id": "processor_1234",
"name": "New Invoice Processor",
"type": "EXTRACT",
"createdAt": "2024-03-01T12:00:00Z",
"updatedAt": "2024-03-01T12:00:00Z"
}
}
This endpoint allows you to create a new processor or clone an existing one. Typically processors are created and configured in the Extend Studio, but this endpoint can be used to create processors programmatically in order to sync ID’s across systems.Documentation Index
Fetch the complete documentation index at: https://docs.extend.app/llms.txt
Use this file to discover all available pages before exploring further.
Show properties
"EXTRACT" for extraction processors."extraction_performance" or "extraction_light". See the base processor documentation for more details."4.0.0"). If this is provided, baseProcessor must be provided as well. See the processor changelog for available versions.schema or fields must be provided. We recommend using schema as fields is deprecated. See the extraction processor schema documentation for more details.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: Text valuesnumber: Numeric valuescurrency: Monetary valuesboolean: True/false valuesdate: Date valuesarray: Lists of values (requires schema)enum: Values from a predefined list (requires enum)object: Nested structure (requires schema)signature: Signature informationShow properties
Show properties
standard: Default chunking strategysemantic: Content-aware chunking based on document structureintelligent: AI-based selectionconfidence: Select based on confidence scoretake_first: Always use first chunktake_last: Always use last chunkShow properties
"CLASSIFY" for classification processors."classification_performance" or "classification_light". See the base processor documentation for more details."3.2.0"). If this is provided, baseProcessor must be provided as well. See the processor changelog for available versions.Show properties
default maxShow properties
"SPLITTER" for splitter processors."splitter_performance". See the base processor documentation for more details."1.0.0"). If this is provided, baseProcessor must be provided as well. See the processor changelog for available versions.Show properties
high_precision: More accurate but potentially slowerlow_latency: Faster but potentially less precisefalse if the request failed.{
"success": true,
"processor": {
"object": "document_processor",
"id": "processor_1234",
"name": "New Invoice Processor",
"type": "EXTRACT",
"createdAt": "2024-03-01T12:00:00Z",
"updatedAt": "2024-03-01T12:00:00Z"
}
}