Skip to content

Classify

Create Classify Job
classify.create(ClassifyCreateParams**kwargs) -> ClassifyCreateResponse
POST/api/v2/classify
List Classify Jobs
classify.list(ClassifyListParams**kwargs) -> SyncPaginatedCursor[ClassifyListResponse]
GET/api/v2/classify
Get Classify Job
classify.get(strjob_id, ClassifyGetParams**kwargs) -> ClassifyGetResponse
GET/api/v2/classify/{job_id}
ModelsExpand Collapse
class ClassifyConfiguration:

Configuration for a classify job.

rules: List[Rule]

Classify rules to evaluate against the document (at least one required)

description: str

Natural language criteria for matching this rule

maxLength500
minLength10
type: str

Document type to assign when rule matches

maxLength50
minLength1
mode: Optional[Literal["FAST"]]

Classify execution mode

parsing_configuration: Optional[ParsingConfiguration]

Parsing configuration for classify jobs.

lang: Optional[str]

ISO 639-1 language code for the document

max_pages: Optional[int]

Maximum number of pages to process. Omit for no limit.

minimum1
target_pages: Optional[str]

Comma-separated page numbers or ranges to process (1-based). Omit to process all pages.

class ClassifyCreateRequest:

Request to create a classify job.

configuration: Optional[ClassifyConfiguration]

Configuration for a classify job.

rules: List[Rule]

Classify rules to evaluate against the document (at least one required)

description: str

Natural language criteria for matching this rule

maxLength500
minLength10
type: str

Document type to assign when rule matches

maxLength50
minLength1
mode: Optional[Literal["FAST"]]

Classify execution mode

parsing_configuration: Optional[ParsingConfiguration]

Parsing configuration for classify jobs.

lang: Optional[str]

ISO 639-1 language code for the document

max_pages: Optional[int]

Maximum number of pages to process. Omit for no limit.

minimum1
target_pages: Optional[str]

Comma-separated page numbers or ranges to process (1-based). Omit to process all pages.

configuration_id: Optional[str]

Product configuration ID for reusable presets

file_id: Optional[str]

File ID to classify

parse_job_id: Optional[str]

Parse job ID to classify

transaction_id: Optional[str]

Idempotency key scoped to the project

class ClassifyResult:

Result of classifying a document.

confidence: float

Confidence score between 0.0 and 1.0

maximum1
minimum0
reasoning: str

Why the document matched (or didn't match) the returned rule

type: Optional[str]

Matched rule type, or null if no rule matched