Request
The API key ID to link this widget to. The widget uses this key’s credits, Brand Soul, and allowed origins.
Display name for the widget. Default: "My Widget".
Visual customization: primaryColor, position (bottom-right | bottom-left), borderRadius, fontFamily, custom CSS overrides.
Behavioral settings: welcomeMessage, placeholder, maxPromptLength, enableFileUpload, enableVoice, strictAbuse (enables rate-limiting heuristics).
Security settings: requireTurnstile (bot protection), allowedOrigins (domain allowlist override).
Response
The widget config UUID. Use this as the configId in the embed script.
Ready-to-use HTML <script> tag for embedding on your site.
Authentication
Requires a dashboard session.
Example
curl -X POST https://hitheo.ai/api/v1/iframes \
-H "Authorization: Bearer $THEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"api_key_id": "key_abc123",
"name": "Support Widget",
"appearance": { "primaryColor": "#715eac" },
"behavior": { "welcomeMessage": "Hi! How can I help?", "strictAbuse": true }
}'