Errors API

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

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

Occasional BlitzPulse product updates and offers, sent only if you tick the box and confirm your address.

How we handle your email

Footer Disclaimer BlitzPulse is educational decision support only. Not investment, tax, or legal advice. Not a broker. Trade at your own risk.