AgentConnect
Agents

Mint a conversation webchat token

Mints a short-lived token the browser presents to the relay pool. Pass agentIds (first entry is the primary) to create a conversation — the roster is fixed at creation — or conversationId to resume one — as its owner, or as any non-viewer member who may continue every session it currently stands on (org-visible sessions; private ones stay owner-only). A resume answers 409 once an agent’s next turn would reach a machine that does not hold its session. Creating with more than one agent requires every selected agent to be placed on a daemon that supports multi-agent webchat.

POST
/v1/orgs/{orgId}/webchat/conversations/token

授权

bearerAuth
授权Bearer <token>

位置: header

路径参数

orgId*string

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

响应主体

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/orgs/string/webchat/conversations/token" \  -H "Content-Type: application/json" \  -d '{}'
{  "token": "string",  "relayUrl": "string",  "conversationId": "string",  "expiresAt": "2019-08-24T14:15:22Z"}