Skip to Content
BlitzPulse docs are live. Looking for Blitz Global? Visit https://blitzglobalcapital.com.
Api ReferenceErrors API

Errors API

Auto-generated from openapi-snapshot.json. Do not edit by hand — changes are overwritten by scripts/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

CodeDescription
204Successful Response
422Validation Error