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