Limai Docs
API ReferenceClassification

List Classifications

List a classifier's classifications, filtered by status, label, or routing.

GET/api/v1/classify/{classifierId}/classifications

List the classifications a classifier has made, newest first. Filter by label to find every document of one type, such as all the purchase orders that arrived through an invoice inbox, whether or not they routed.

To read one classification in full, including its reasoning and context, use the status endpoint.

Parameters

NameTypeInRequiredDescription
classifierIdstringpathYesThe classifier ID.
statusstringqueryNoOne of PENDING, PROCESSING, CLASSIFIED, UNCLASSIFIED, FAILED.
labelstringqueryNoA label ID from GET /labels. Only classifications with this label are returned.
unroutedbooleanqueryNoPass true to return only classifications that were not routed to a model.
pagenumberqueryNoPage number, starting at 1. Defaults to 1.
limitnumberqueryNoClassifications per page. Defaults to 20, maximum 200.

Filters combine: status=UNCLASSIFIED&label=lbl_po01 returns the unrouted purchase orders.

Request

const params = new URLSearchParams({ label: LABEL_ID, unrouted: "true", limit: "100" })
const response = await fetch(
`https://app.limai.io/api/v1/classify/${CLASSIFIER_ID}/classifications?${params}`,
{ headers: { "Authorization": `Bearer ${API_TOKEN}` } }
)
const { classifications, totalPages } = await response.json()

Response

Response200
{
  "classifications": [
    {
      "classificationId": "cls_789jkl",
      "status": "UNCLASSIFIED",
      "fileId": "file_012mno",
      "fileName": "po-4411.pdf",
      "routedDeployment": null,
      "label": {
        "id": "lbl_po01",
        "name": "Purchase Order"
      },
      "confidenceScore": 0.22,
      "unclassifiedReason": "No route matches this document type",
      "createdAt": "2026-11-12T10:32:05.000Z",
      "updatedAt": "2026-11-12T10:32:11.000Z"
    }
  ],
  "totalCount": 37,
  "page": 1,
  "limit": 20,
  "totalPages": 2
}
FieldTypeDescription
classifications[].classificationIdstringThe classification run
classifications[].statusstringPENDING, PROCESSING, CLASSIFIED, UNCLASSIFIED (classified but not routed), or FAILED
classifications[].fileIdstring | nullThe classified file
classifications[].fileNamestring | nullThe file's name
classifications[].routedDeploymentobject | null{ id, name } of the model the document routed to, or null
classifications[].labelobject | null{ id, name } of the document's label. Routed documents carry their route's label. null for classifications made before labels existed, or when the classifier assigned none.
classifications[].confidenceScorenumber | nullThe classifier's confidence in the match, 0 to 1
classifications[].unclassifiedReasonstring | nullWhy the document did not route
classifications[].createdAtISO 8601When the classification started
classifications[].updatedAtISO 8601When it last changed
totalCountnumberMatching classifications across all pages
pagenumberThis page
limitnumberPage size
totalPagesnumberNumber of pages

Errors

StatusWhen
400An invalid status, or page / limit out of range
403You cannot access this classifier
404The classifier does not exist

On this page