Skip to main content
A completed classification job returns the overall document classification, a confidence score, and per-page results. The example below is a real response from classifying an invoice against four candidate categories.

Top-Level Fields

  • job_id: unique identifier for the classification job
  • status: job state (completed, failed, or an in-progress value such as processing)
  • progress: human-readable progress message
  • error: error message if the job failed, otherwise null
  • result: the classification result object (described below)

Result Object

  • success: whether the classification operation succeeded
  • classification: the overall predicted category for the document
  • confidence: confidence score for the overall classification (0–1)
  • total_pages: total number of pages in the document
  • processed_pages: number of pages successfully processed
  • page_results: per-page classifications (described below)

Page Result Object

Each item in page_results describes the classification of one page:
  • page: page number, 1-indexed
  • success: whether classification succeeded for that page
  • classification: the predicted category for the page
  • raw_result: the model’s raw output before normalization to a category name; usually identical to classification
  • confidence: confidence score for the page’s classification (0–1)

Other Job States

The submit response (before polling kicks in) returns a smaller body:
A job that’s still running returns the current progress without a result:
A failed job returns an error message:
For the full request and response specification, see the Classify API reference.