Files
2026-11-02 00:51:15 +01:00

718 B

GET /companyuser

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

List company users

Lists the members of the selected company with their role. Admin only.

Response 200

Company members

{
  "companyusers": [
    {
      "id": 1,
      "googleAuthId": 1,
      "email": "…",
      "picture": "…",
      "role": "admin"
    }
  ]
}

Errors

Status Description
400 No company selected — {"error":"…"}
401 Unauthorized — {"error":"…"}
403 Not authorized (admin of the selected company required) — {"error":"…"}

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