Back to website Open portal

Available

Email classification schema

The classifier's two answer shapes, and why type 8 is a classifier rather than a parser.

Updated 2026-09-07

Type 8 is the email classifier behind Classify an email. It is registered alongside the parsers so its two prompts are versioned and promoted the same way, but it is a classifier, not a parser: it answers with document types, never with extracted fields. Type 8 is not selectable from the document-type registry and must not be sent as typeId to the submit endpoint, which answers 400 for it and for the retired body-inferred email mode.

The tables below are generated from the registry’s answer shapes. Unlike a parser’s format template they are not embedded in the prompts; they document what each prompt asks the model to return.

Intent answer (with line items)

Field Type Template Description
confidence_score number #0 to 1 Returned Generated from the current email intent answer shape.
document_type invoice | po | grn | debitNote | creditNote | paymentAdvice #the PRIMARY document the sender wants processed Returned Generated from the current email intent answer shape.
has_invoice boolean #true when the email is about any supported finance document Returned Generated from the current email intent answer shape.

Attachment answer (without line items)

Field Type Template Description
documents[].confidence_score number #0 to 1 Returned Generated from the current attachment classification answer shape.
documents[].doc_number integer #1-based position of the attachment in the request Returned Generated from the current attachment classification answer shape.
documents[].document_type invoice | po | grn | debitNote | creditNote | paymentAdvice | unknown Returned Generated from the current attachment classification answer shape.

Missing template fields are omitted from the payload; the delivered files rows always carry type, type_id, confidence and url, with unknown and -1 for an attachment that could not be read.