Documentation Index
Fetch the complete documentation index at: https://docs.webless.ai/llms.txt
Use this file to discover all available pages before exploring further.
Environments
| Environment | REST base URL | WebSocket URL |
|---|---|---|
| Staging | https://api.staging.webless.ai | wss://api.staging.webless.ai/api/v1/ws |
| Production | https://api.webless.ai | wss://api.webless.ai/api/v1/ws |
ws:// only for local development.
Request flow
Latest and legacy routes
| Use | Latest |
|---|---|
| Query tiles | POST /api/v1/queries |
| Stream summary | wss://api.webless.ai/api/v1/ws |
| Select CTA | POST /api/v1/cta-selection |
| Get suggestions | POST /api/v1/suggestions |
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 /api/v1/queries
Call
POST /api/v1/queries 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
/api/v1/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 |
