Files
dashback/docs/api/routes/company/list.md
2026-07-31 18:25:42 +02:00

29 lines
459 B
Markdown

# `GET /company`
Protected. Requires a valid session cookie (`credentials: 'include'`).
List companies
Lists companies for the authenticated user.
## Response `200`
Company list
```json
{
"companies": []
}
```
## Errors
| Status | Description |
|--------|-------------|
| 401 | Unauthorized — `{"error":"…"}` |
| 500 | Server error — `{"error":"…"}` |
---
_Generated from `@openapi` JSDoc. Do not edit by hand — run `npm run docs:api`._