Create Processor

Create a new processor in Extend, optionally cloning from an existing processor

Headers

AuthorizationstringRequired

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

x-extend-api-versionenumOptional

API version to use for the request. If you do not specify a version, you will either receive a 400 Bad Request or be set to a previous legacy version. See API Versioning for more details.

Allowed values:

Request

This endpoint expects an object.
namestringRequired

The name of the new processor

typeenumRequired

The type of processor:

  • "EXTRACT" - Extracts structured data from documents
  • "CLASSIFY" - Classifies documents into categories
  • "SPLITTER" - Splits documents into multiple parts
Allowed values:
cloneProcessorIdstringOptional

The ID of an existing processor to clone. One of cloneProcessorId or config must be provided.

Example: "dp_Xj8mK2pL9nR4vT7qY5wZ"

configobjectOptional

The configuration for the processor. The type of configuration must match the processor type. One of cloneProcessorId or config must be provided.

jsonSchemaEnabledbooleanOptionalDefaults to false

Whether to enable JSON schema for the processor. Defaults to false.

Response

Successfully created processor

successboolean
processorobject

Errors