Skip to main content
When you classify a document with the API, the results are returned in a structured JSON format.

Example Response

The following example shows a classification response for a nine-page document containing bank statements and pay stubs:

Response Structure

The response contains the following top-level fields:

Per-Page Results (classification)

The classification field contains an array of results, one per page in the document. Each object includes:

Unknown Pages

When a page cannot be confidently classified into any of the classes you defined, the API returns unknown in the class field and a value in suggested_class. Use this to review borderline pages or adjust your class list.

Processing Metadata (metadata)

The metadata field provides information about the classification process: