API ReferenceSplitting
Get Split
Get the status and results of a specific split operation
GET
/api/v1/split/{splitterId}Retrieves the status and results of a specific split operation. Use this to poll for results after starting an async split.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
splitterId | string | path | Yes | The splitter ID |
splitId | string | query | Yes | The split operation ID |
Request
const res = await fetch(
"https://app.limai.io/api/v1/split/spl_abc123?splitId=split_xyz789",
{
headers: {
Authorization: "Bearer YOUR_API_TOKEN",
},
}
);
const split = await res.json();Response
Response200
{
"splitId": "split_xyz789",
"status": "COMPLETED",
"sourceFileName": "document.pdf",
"splitterName": "Invoice Splitter",
"segmentCount": 3,
"segments": [
{
"segmentIndex": 0,
"pageStart": 1,
"pageEnd": 2,
"detectedType": "invoice",
"confidence": 0.95,
"outputFileId": "file_001",
"outputType": "FILE",
"discarded": false
}
],
"errorMessage": null,
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-15T10:30:45.000Z"
}