Mint a session-continuation webchat token
Mints a short-lived token the browser presents to the relay pool to continue an existing session from the console composer — a chat thread (the human turn is mirrored back to it), a hook-origin session such as a GitHub or GitLab event, whose only surface is the console, or a task (a delegated task’s page, or a webchat coordinator’s task, whose message is a reply in the thread it holds), which whoever may continue its owning session continues console-only. Requires continuation authorization, un-purged content, a daemon that can still serve the session content (its recorder, or a live member of the shared store it was written to), and continuation-capable daemon and relay pool.
授权
bearerAuth 位置: header
路径参数
请求主体
application/json
TypeScript 定义
在 TypeScript 中使用 request body 类型。
响应主体
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/orgs/string/sessions/string/webchat/token" \ -H "Content-Type: application/json" \ -d '{}'{ "protocol": "legacy", "ahp": { "url": "http://example.com", "sessionUri": "string", "peers": [ { "agentId": "bc309ecf-5f66-4057-93c5-6611cc9cb7b2", "url": "http://example.com", "sessionUri": "string" } ] }, "token": "string", "relayUrl": "string", "conversationId": "string", "expiresAt": "2019-08-24T14:15:22Z", "sessionId": "string"}