Files
2026-11-02 00:19:19 +01:00

697 B

GET /autoinvite

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

List auto-invitations

Lists pending auto-invitations of the selected company. Admin only.

Response 200

Pending invitations

{
  "autoinvites": [
    {
      "id": 1,
      "email": "…",
      "role": "admin",
      "createdAt": "…"
    }
  ]
}

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.