API ReferenceClassification
List Classifications
List a classifier's classifications, filtered by status, label, or routing.
GET
/api/v1/classify/{classifierId}/classificationsList 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
| Name | Type | In | Required | Description |
|---|---|---|---|---|
classifierId | string | path | Yes | The classifier ID. |
status | string | query | No | One of PENDING, PROCESSING, CLASSIFIED, UNCLASSIFIED, FAILED. |
label | string | query | No | A label ID from GET /labels. Only classifications with this label are returned. |
unrouted | boolean | query | No | Pass true to return only classifications that were not routed to a model. |
page | number | query | No | Page number, starting at 1. Defaults to 1. |
limit | number | query | No | Classifications 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
}| Field | Type | Description |
|---|---|---|
classifications[].classificationId | string | The classification run |
classifications[].status | string | PENDING, PROCESSING, CLASSIFIED, UNCLASSIFIED (classified but not routed), or FAILED |
classifications[].fileId | string | null | The classified file |
classifications[].fileName | string | null | The file's name |
classifications[].routedDeployment | object | null | { id, name } of the model the document routed to, or null |
classifications[].label | object | 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[].confidenceScore | number | null | The classifier's confidence in the match, 0 to 1 |
classifications[].unclassifiedReason | string | null | Why the document did not route |
classifications[].createdAt | ISO 8601 | When the classification started |
classifications[].updatedAt | ISO 8601 | When it last changed |
totalCount | number | Matching classifications across all pages |
page | number | This page |
limit | number | Page size |
totalPages | number | Number of pages |
Errors
| Status | When |
|---|---|
400 | An invalid status, or page / limit out of range |
403 | You cannot access this classifier |
404 | The classifier does not exist |