GET
/
api
/
production-logs
List all production logs
curl --request GET \
  --url http://localhost:3000/api/production-logs \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": [
    {
      "_id": "<string>",
      "pane": "<string>",
      "order": "<string>",
      "station": "<string>",
      "operator": "<string>",
      "defectCode": "<string>",
      "reworkReason": "<string>",
      "qcResults": [
        {
          "label": "<string>",
          "passed": true,
          "note": "<string>"
        }
      ],
      "startedAt": "2023-11-07T05:31:56Z",
      "completedAt": "2023-11-07T05:31:56Z",
      "durationMs": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 45,
    "totalPages": 3
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
integer
default:1

Page number (1-indexed)

Required range: x >= 1
limit
integer
default:20

Items per page (clamped to 1–100)

Required range: 1 <= x <= 100
sort
string
default:-createdAt

Sort field. Prefix with - for descending (e.g. -createdAt, name)

Response

List of production logs

success
boolean
Example:

true

message
string
data
object[]
pagination
object