Stream a grounded answer (SSE)
Like POST /org/search, but streams the result as Server-Sent Events: token events carry the answer as it is generated, a sources event then carries the matched chunks — each with the kb_node_id of its source document — and a final done event closes the stream. If answer generation fails to start, an error event is emitted instead (the HTTP status stays 200 because headers are already sent); a provider failure mid-stream ends the stream normally (sources + done) with a truncated answer. Each call consumes search credits.
Request
- Base URLhttps://apiv2.senso.ai/api/v1
- AuthAPI key in header X-API-Key
Headers
Send off to keep this search out of your organization's gap report. The search still runs, consumes credits and is recorded in search history; it is only never counted towards a gap. false, 0, no, skip and none mean the same, case-insensitively. Any other value, or no header, leaves the search eligible. Use it on automated, synthetic or test traffic. Only POST /org/search, /org/search/full and /org/search/stream ever file gaps; /org/search/context and /org/search/content accept the header and never file one either way.
Request body
Response
A text/event-stream of SSE events: token ({"token": "..."}), then sources ({"results": [...], "total_results": N, "max_results": N, "search_type": "..."}, where each entry of results is a SearchResultChunk), then done ({}); or error ({"error": "..."}) on a post-open failure.
Changes
No recorded changes to this operation across all 1 revision of this API.