Get conversation token

Get a WebRTC session token for real-time communication.

请求头

xi-api-keystring可选

查询参数

agent_idstring必需

Agent id (agent_…) or speech engine external id (seng_), resolved to the same underlying resource.

participant_namestring可选
Optional custom participant name. If not provided, user ID will be used
branch_idstring可选
The ID of the branch to use
version_idstring可选
The ID of the version to use
environmentstring可选

The environment to use for resolving environment variables (e.g. ‘production’, ‘staging’). Defaults to ‘production’.

debug_events_requestboolean可选默认为 false
Whether to enable debug events. Only available for users with editor access to the agent.

响应

Successful Response
tokenstring
conversation_idstring

错误

422
Conversations Get Webrtc Token Request Unprocessable Entity Error