Files
dashback/docs/api/routes/company/history.md
2026-10-04 11:25:17 +02:00

999 B

GET /company/history

Protected. Requires a valid session cookie (credentials: 'include').

Get company history

Returns companyhistory rows for the selected company, newest first (date DESC, id DESC).

Query parameters

Param Required Type Description
limit no integer Maximum number of entries to return (newest first). Omit for all entries.

Response 200

Company history (newest first)

{
  "history": [
    {
      "id": 1,
      "companyuserId": 1,
      "date": "2026-08-10T00:00:00.000Z",
      "text": "…"
    }
  ],
  "truncated": true
}

Errors

Status Description
400 Invalid limit or no company selected — {"error":"…"}
401 Unauthorized — {"error":"…"}
403 Forbidden — {"error":"…"}
500 Server error — {"error":"…"}

Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.