GET
/api/public/v1/qa-shift-sessions

List QA shift sessions

One run of one production line against one product spec — the thing every line check hangs off. A session is opened at the start of a shift and SIGNED_OFF by a supervisor at the end; once signed off it takes no more checks, which is what makes the shift’s record final.

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.
lineIdstringOptionalOne production line.
statusstringOptionalFilter by where the shift has got to.
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/qa-shift-sessions" \
  -H "Authorization: Bearer your_access_token"
200Example response
json
{
  "message": "QA shift sessions retrieved successfully!",
  "content": {
    "sessions": [
      {
        "id": "qss_3300",
        "lineId": "qln_02",
        "productSpecId": "qsp_1001",
        "status": "OPEN",
        "startedAt": "2026-08-29T06:00:00.000Z",
        "endedAt": null,
        "_count": {
          "checks": 22
        }
      }
    ],
    "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 → Dashboard
/quality/dashboard