Runs API
Scope required
All runs endpoints require the runs:read scope.
List Runs
GET /api/v2/runs?status=IN_PROGRESS&page=0&size=20
Returns paginated production runs for your organisation. External status values: PENDING (optimised, not yet started), IN_PROGRESS, CLOSED (completed), CANCELLED.
{
"success": true,
"data": {
"data": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"status": "IN_PROGRESS",
"machineId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"machineName": "Winder A",
"paperType": "Kraft",
"gsmValue": 80,
"totalWastePct": 0.38,
"createdAt": "2026-06-06T05:45:00"
}
],
"meta": { "page": 0, "size": 20, "total": 7, "totalPages": 1 }
}
}Get Single Run
GET /api/v2/runs/{id}Returns full run detail including totalPaperConsumedMT, totalProductMT, and notes. Production runs are created and managed exclusively through the Deckle Plus web application. The external API provides read access only.
Run Status Vocabulary
The external API uses a simplified status set that maps from internal states:
PENDING: run has been optimised and is waiting to start on the floorIN_PROGRESS: an operator has started the runCLOSED: all patterns are complete and challans have been generatedCANCELLED: the run was cancelled before completion
Pattern Data
GET /api/v2/runs/{id}/patternsReturns all cutting patterns for the run in execution order. Each pattern includes its waste percentage and the paper cuts (order width allocations) that make up that pattern pass.
{
"success": true,
"data": [
{
"id": "a1b2c3d4-...",
"sequenceNumber": 1,
"wastePct": 0.28,
"wasteMm": 100,
"widthUsedMm": 3500,
"runForMT": 5.0,
"status": "COMPLETED",
"paperCuts": [
{ "orderWidthId": "uuid", "widthMm": 900, "stripCount": 3 },
{ "orderWidthId": "uuid", "widthMm": 800, "stripCount": 2 }
]
}
]
}Was this page helpful?
Something unclear or missing? Reach out and we'll update this page.