37 lines
697 B
Markdown
37 lines
697 B
Markdown
# `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
|
|
|
|
```json
|
|
{
|
|
"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`._
|