GET
/api/public/v1/qa-checks

List QA line checks

The periodic measurements an operator records on a production line. `status` and `outOfToleranceReasons` are computed against the shift session’s product spec, so a check reads as out of spec because the spec said so — read the spec alongside it or the numbers mean little.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.

quality:checks:read

Query Parameters

NameTypeRequiredDescription
locationIdstringRequiredWhich plant.
limitnumberOptionalMaximum number of items to return (1-100).Default: 20
offsetnumberOptionalNumber of items to skip before starting to collect the result set.Default: 0
sortBystringOptionalField to sort by. Allowed values vary by endpoint.Default: createdAt
sortOrderstring
asc
desc
OptionalSort direction.Default: desc
searchstringOptionalFree-text search across the resource’s primary fields.
createdAfterstringOptionalISO 8601 timestamp — only return items created after this time.
createdBeforestringOptionalISO 8601 timestamp — only return items created before this time.
updatedAfterstringOptionalISO 8601 timestamp — only return items updated after this time.
shiftSessionIdstringOptionalOne shift’s checks.
statusstring
IN_SPEC
OUT_OF_TOLERANCE
OptionalFilter to the ones that failed.
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/qa-checks" \
  -H "Authorization: Bearer your_access_token"
200Example response
json
{
  "message": "QA checks retrieved successfully!",
  "content": {
    "checks": [
      {
        "id": "qck_5522",
        "locationId": "loc_abc123",
        "shiftSessionId": "qss_3300",
        "recordedAt": "2026-08-29T14:15:00.000Z",
        "unitWeight": 32.9,
        "unitVolume": 2.01,
        "operatorEmployeeId": "emp_44f1",
        "operatorInitials": "DR",
        "notes": null,
        "status": "OUT_OF_TOLERANCE",
        "outOfToleranceReasons": [
          "weight_high"
        ],
        "createdAt": "2026-08-29T14:15:00.000Z"
      }
    ],
    "pagination": {
      "total": 42,
      "limit": 20,
      "offset": 0,
      "hasMore": true
    }
  }
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

Quality → Line Checks
/quality/line-checks