AdminTenantController_update
const url = 'https://example.com/v1/admin/tenant';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"account":{"enabled":true,"loginUrl":"example","showGuestBanner":true,"timeoutMs":1,"webhookUrl":"example"},"allowedOrigins":["example"],"categories":["example"],"clientTools":[{"description":"example","enabled":true,"inputSchema":{},"name":"example","needsApproval":true,"requiresAuth":true,"timeoutMs":1}],"components":{"buttons":{"css":"example","template":"example"},"infoCard":{"css":"example","template":"example"},"orderCard":{"css":"example","template":"example"},"productCard":{"css":"example","template":"example"},"productList":{"css":"example","template":"example"}},"controls":{"answerLength":"long","budgetAction":"overage","maxMessagesPerConversation":1,"maxMessagesPerVisitorPerDay":1,"monthlyConversationBudget":1,"monthlyTokenBudget":1},"escalation":{"enabled":true,"provider":"webhook","secret":"example","trello":{"apiKey":"example","labelIds":["example"],"listId":"example","memberIds":["example"],"token":"example"},"webhookUrl":"example"},"intents":["example"],"llm":{"chatModel":"gpt-5.4-mini","provider":"anthropic","reasoningEffort":"low"},"name":"example","profile":{"about":"example","allowOffTopic":true,"audience":"example","blockedTopics":[{"response":"example","topic":"example"}],"contact":{"address":"example","email":"example","hours":"example","phone":"example"},"doNot":"example","glossary":[{"definition":"example","term":"example"}],"instructions":"example","offering":"example","policies":{"payment":"example","returns":"example","shipping":"example","warranty":"example"},"toneOfVoice":"example","websiteUrl":"example"},"remoteTools":[{"description":"example","enabled":true,"inputSchema":{},"name":"example","requiresAuth":true,"timeoutMs":1,"url":"example"}],"settings":{"channels":["example"],"conversationTtlDays":1,"disabledTools":["example"],"guestSessions":true,"languages":["example"],"maxImageBytes":1,"maxToolSteps":1,"staleCloseHours":1,"traceTtlDays":1,"vars":{}},"theme":{"assistantName":"example","backgroundColor":"example","borderRadius":1,"botBubbleColor":"example","customCss":"example","defaultExpanded":true,"fontFamily":"example","labels":{},"launcherIcon":"chat","logoUrl":"example","position":"left","primaryColor":"example","primaryContrastColor":"example","textColor":"example","title":"example","welcomeMessage":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/v1/admin/tenant \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "account": { "enabled": true, "loginUrl": "example", "showGuestBanner": true, "timeoutMs": 1, "webhookUrl": "example" }, "allowedOrigins": [ "example" ], "categories": [ "example" ], "clientTools": [ { "description": "example", "enabled": true, "inputSchema": {}, "name": "example", "needsApproval": true, "requiresAuth": true, "timeoutMs": 1 } ], "components": { "buttons": { "css": "example", "template": "example" }, "infoCard": { "css": "example", "template": "example" }, "orderCard": { "css": "example", "template": "example" }, "productCard": { "css": "example", "template": "example" }, "productList": { "css": "example", "template": "example" } }, "controls": { "answerLength": "long", "budgetAction": "overage", "maxMessagesPerConversation": 1, "maxMessagesPerVisitorPerDay": 1, "monthlyConversationBudget": 1, "monthlyTokenBudget": 1 }, "escalation": { "enabled": true, "provider": "webhook", "secret": "example", "trello": { "apiKey": "example", "labelIds": [ "example" ], "listId": "example", "memberIds": [ "example" ], "token": "example" }, "webhookUrl": "example" }, "intents": [ "example" ], "llm": { "chatModel": "gpt-5.4-mini", "provider": "anthropic", "reasoningEffort": "low" }, "name": "example", "profile": { "about": "example", "allowOffTopic": true, "audience": "example", "blockedTopics": [ { "response": "example", "topic": "example" } ], "contact": { "address": "example", "email": "example", "hours": "example", "phone": "example" }, "doNot": "example", "glossary": [ { "definition": "example", "term": "example" } ], "instructions": "example", "offering": "example", "policies": { "payment": "example", "returns": "example", "shipping": "example", "warranty": "example" }, "toneOfVoice": "example", "websiteUrl": "example" }, "remoteTools": [ { "description": "example", "enabled": true, "inputSchema": {}, "name": "example", "requiresAuth": true, "timeoutMs": 1, "url": "example" } ], "settings": { "channels": [ "example" ], "conversationTtlDays": 1, "disabledTools": [ "example" ], "guestSessions": true, "languages": [ "example" ], "maxImageBytes": 1, "maxToolSteps": 1, "staleCloseHours": 1, "traceTtlDays": 1, "vars": {} }, "theme": { "assistantName": "example", "backgroundColor": "example", "borderRadius": 1, "botBubbleColor": "example", "customCss": "example", "defaultExpanded": true, "fontFamily": "example", "labels": {}, "launcherIcon": "chat", "logoUrl": "example", "position": "left", "primaryColor": "example", "primaryContrastColor": "example", "textColor": "example", "title": "example", "welcomeMessage": "example" } }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
Sign-in page; {returnUrl} is replaced with the current page URL.
Account API URL (https); empty disables the order tools.
object
JSON Schema (object) for the tool input
object
Ask the visitor to approve the call before the host runs it.
Only offered to signed-in visitors.
object
object
CSS scoped to the widget shadow root (max 4000 chars)
HTML template with {{field}} placeholders (max 8000 chars); sanitized by the widget
object
CSS scoped to the widget shadow root (max 4000 chars)
HTML template with {{field}} placeholders (max 8000 chars); sanitized by the widget
object
CSS scoped to the widget shadow root (max 4000 chars)
HTML template with {{field}} placeholders (max 8000 chars); sanitized by the widget
object
CSS scoped to the widget shadow root (max 4000 chars)
HTML template with {{field}} placeholders (max 8000 chars); sanitized by the widget
object
CSS scoped to the widget shadow root (max 4000 chars)
HTML template with {{field}} placeholders (max 8000 chars); sanitized by the widget
object
Short | normal | long — caps output tokens and nudges the style
When a self-set monthly budget is reached: stop | overage
Visitor messages per conversation (≤ plan limit)
Visitor messages per visitor per day (≤ plan limit)
Self-imposed monthly conversation budget
Self-imposed monthly token budget
object
HMAC secret used to sign escalation webhooks
object
Trello API key; send the mask to keep the stored one
Id of the list new cards are added to
Trello token; send the mask to keep the stored one
object
Example
gpt-5.4-miniobject
Answer unrelated requests too (default false: stay on the business).
object
Canned reply; a polite refusal is used when empty.
object
object
object
object
JSON Schema (object) for the tool input
object
Only offered to signed-in visitors.
object
Days a conversation (and its visitor images) is kept after the last message.
Allow anonymous sessions via POST /public/session (default true). When false every guest gets 403; visitor tokens minted by your server keep working.
Maximum model steps (tool rounds) per reply
Close open conversations idle for this many hours
Days model-run traces (tool inputs, cited chunks, error texts) are kept. Defaults to conversationTtlDays and is capped by it.
Free-form template variables, exposed as {{var:key}}
object
object
Assistant persona name; replaces {name} in the welcome message and is given to the model
Panel background, hex
Panel/bubble corner radius in px (0-40)
Assistant bubble background, hex
Extra CSS injected into the widget shadow root (max 4000 chars)
Open the widget in full-screen mode by default
CSS font-family stack
Label overrides per locale, e.g. { “tr”: { “title”: “Destek” }, “*”: { “send”: “OK” } }
object
Logo shown in the panel header (https URL)
Launcher, header and visitor bubble colour, hex
Text colour on the primary colour, hex
Body text colour, hex
Header title (overrides the locale default)
First assistant bubble shown while the conversation is empty
Responses
Section titled “Responses”object
object
First characters of the admin API key
object
object
object
object
object
object
object
object
object
Example generated
{ "createdAt": "2026-04-15T12:00:00Z", "createdBy": "example", "id": "example", "updatedAt": "2026-04-15T12:00:00Z", "updatedBy": "example", "account": {}, "allowedOrigins": [ "example" ], "apiKeyPrefix": "example", "categories": [ "example" ], "clientTools": [ {} ], "components": {}, "controls": {}, "escalation": {}, "intents": [ "example" ], "llm": {}, "name": "example", "profile": {}, "publishableKey": "example", "remoteTools": [ "example" ], "settings": {}, "slug": "example", "status": "example", "subscription": {}, "theme": {}}