Skip to main content
POST
创建 Iframe 组件

请求

string
必填
要关联此组件的 API 密钥 ID。该组件将使用此密钥的额度、Brand Soul 以及允许的来源域名。
string
组件的显示名称。默认值:"My Widget"。
object
外观自定义设置:primaryColor、position(bottom-right | bottom-left)、borderRadius、fontFamily,以及自定义 CSS 覆盖项。
object
行为设置:welcomeMessage、placeholder、maxPromptLength、enableFileUpload、enableVoice、strictAbuse(启用限流启发式策略)。
object
安全设置:requireTurnstile(机器人防护)、allowedOrigins(覆盖允许的来源域名白名单)。

响应

string
组件配置的 UUID。在嵌入脚本中将其用作 configId。
string
组件的显示名称。
string
"active" 或 "disabled"。
string
可直接使用的 HTML <script> 标签,用于嵌入到你的网站中。

身份验证

需要仪表盘会话。

示例

curl