Environments
| Environment | REST base URL | WebSocket URL |
|---|---|---|
| Staging | https://d2wanlnzrkmzyb.cloudfront.net | wss://d2wanlnzrkmzyb.cloudfront.net/ws |
| Production | https://api.webless.ai | wss://api.webless.ai/ws |
ws:// only for local development.
Request flow
Orchestrate the full experience
Create identifiers
Create a
sessionId once per user session. Create a new requestId for each
query or action.Fetch tiles with /post_query
Call
POST /post_query to fetch the top content tiles for the query. Keep
the same sessionId and requestId you will use everywhere else.Stream the summary over WebSocket
Open
/ws and send the get_summary_with_cache action. Append
summary_part chunks as they arrive, then finalize the UI when you receive
summary_complete.WebSocket request
WebSocket events
| Event | Meaning |
|---|---|
summary_part | A streamed chunk of summary text |
summary_tiles | Tile IDs emitted near completion |
summary_complete | The stream finished successfully |
error | The request failed |
