Email classification replaces email attachment mode
POST /api/v1/email-classify reports what an email is about and what each attachment is; the submit endpoint no longer accepts attachments.
Email attachment mode on /documents parsed every attachment with the invoice schema
whenever the email looked like an invoice. The new POST /api/v1/email-classify endpoint classifies instead: the
subject and body are classified to a primary document type, and every attachment is
classified individually as an invoice, purchase order, GRN, debit note, credit note,
payment advice, or unknown. Submit the attachments you want extracted to /documents
afterwards with the reported type_id.
A /documents request with an attachments array now answers 400 with the
forwarding message. Jobs created before the change keep their rows and payloads.