Errors API
Auto-generated from
openapi-snapshot.json. Do not edit by hand — changes are overwritten byscripts/docs/generate_api_reference.py.
1 endpoints in this group.
POST /api/errors/frontend
Report Frontend Error
Record or dedupe a client-side JS error.
Auth is optional — anonymous crashes still land in the table with
user_id NULL. When a valid JWT is present we attach user_id/tenant_id.
Resilience contract (#1769)
This endpoint MUST NEVER return 5xx. The frontend reporter is mounted in
the root layout and a 5xx here would loop through window.onerror and
surface as a console-noise cascade on every protected page. The entire
body is wrapped so that any failure (DB unavailable, engine bootstrap
crash, sanitizer regex pathology, etc.) degrades to a 204 no-op — the
crash is silently dropped but the user-visible UX is not broken.
Request body: application/json
Responses
| Code | Description |
|---|---|
204 | Successful Response |
422 | Validation Error |