Skip to main content
GET
Stream the agent reply

Try it in this order

1

1. Bootstrap

Open Bootstrap. Enter your index ID, click Try it, then Send. The playground saves your accessToken for the next two pages. You can only use it on this site, and it expires in about 15 minutes.
2

2. Send a message

Open Send a message. This page fills in your token and index ID. Send Hello. The playground saves your sessionId (wrun_…).
3

3. Stream the reply

Open Stream events. This page fills in your token and that sessionId. Click Send to read the reply.
To send another message, go back to Send a message and click Send again. Then open Stream events once more. The playground updates the session id to that new turn. This is step 3. This page fills in your token and the latest wrun_… session id. Click Send to read the reply from the message you just sent.

Authorizations

Authorization
string
header
required

accessToken from POST /webless/v1/bootstrap. Get it on the Bootstrap docs page (Send in the playground) or use POST Send a message for the full flow.

Path Parameters

sessionId
string
required

sessionId from the Send a message 202 response. It looks like wrun_…

Example:

"wrun_01EXAMPLE"

Query Parameters

indexId
string
required

Your Webless index ID

Response

NDJSON. Each line is one event. The visitor-facing reply is message.appended data.messageSoFar.

Newline-delimited JSON. Each line is one StreamEvent object.