Error Handling
The iNwealth API returns errors in two ways depending on when they occur:- Before streaming starts — standard HTTP JSON errors
- During streaming — SSE error events
HTTP errors
These are returned as standard JSON responses before any streaming begins.401 — Authentication failed
- Missing
Authorizationheader - Invalid or revoked API key
- Malformed Bearer token
400 — Invalid parameters
effort level).
422 — Missing required fields
messages, session_id) are missing or have the wrong type.

