Create a browser session
Mint a short-lived session pass plus a resume token for one browser visitor, and create the single thread that pass is bound to. Call this from YOUR server after authenticating the visitor — the org API key must never reach the browser. The returned pass is the only credential the browser holds; it can read and run exactly one thread of one agent and nothing else.
post/v1/sessions
Request
- Base URLhttps://api.runbear.io
- AuthHTTP bearer
Request body
Example request
{
"assistant_id": "0fade940-133f-49e6-bf4b-8f662186479b",
"endUser": "user_8fj2k"
}Response
Default Response
Example response
{
"pass": {
"expiresInSeconds": 900
},
"resumeToken": {
"expiresInSeconds": 900
}
}Changes
No recorded changes to this operation across all 1 revision of this API.