Classify returns the single best-matching category for a document, along with a confidence score and the reasoning behind the decision. This page explains every field in the response.
A completed classify run looks like this (truncated for brevity). The classification result lives in output.
output holds a single matched classification. It is present when status is "PROCESSED".
confidence is a number from 0 to 1 reflecting how sure the model is about the match. Use it to gate downstream processing — for example, route any classification below a threshold to manual review.
insights is an array explaining the classification decision. Each insight has a type and content.