Skip to main content
POST
Bootstrap visitor access

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. Start here. This preview calls https://runtime.webless.ai. Use an index that is published in Agentic mode on production.

Body

application/json
clientSessionId
string
required

Stable ID for this browser session. Generate a fresh UUID per browser; do not reuse the docs example value.

Example:

"a1c2d3e4-1111-2222-3333-444455556666"

indexId
string
required

Webless index ID from Setup.

Example:

"YOUR_INDEX_ID"

version
enum<string>
default:published
Available options:
published,
unpublished
Example:

"published"

Response

Visitor capability issued

accessToken
string
tokenType
enum<string>
Available options:
Bearer
expiresAt
string<date-time>
origin
string<uri>
visitorSubject
string
apiVersion
string
identity
object