Skip to content

AdminTenantController_update

PATCH
/v1/admin/tenant
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" } }'
Media typeapplication/json
object
account
object
enabled
boolean
loginUrl

Sign-in page; {returnUrl} is replaced with the current page URL.

string
showGuestBanner
boolean
timeoutMs
number
webhookUrl

Account API URL (https); empty disables the order tools.

string
allowedOrigins
Array<string>
categories
Array<string>
clientTools
Array<object>
object
description
string
enabled
boolean
inputSchema

JSON Schema (object) for the tool input

object
name
string
needsApproval

Ask the visitor to approve the call before the host runs it.

boolean
requiresAuth

Only offered to signed-in visitors.

boolean
timeoutMs
number
components
object
buttons
object
css

CSS scoped to the widget shadow root (max 4000 chars)

string
template

HTML template with {{field}} placeholders (max 8000 chars); sanitized by the widget

string
infoCard
object
css

CSS scoped to the widget shadow root (max 4000 chars)

string
template

HTML template with {{field}} placeholders (max 8000 chars); sanitized by the widget

string
orderCard
object
css

CSS scoped to the widget shadow root (max 4000 chars)

string
template

HTML template with {{field}} placeholders (max 8000 chars); sanitized by the widget

string
productCard
object
css

CSS scoped to the widget shadow root (max 4000 chars)

string
template

HTML template with {{field}} placeholders (max 8000 chars); sanitized by the widget

string
productList
object
css

CSS scoped to the widget shadow root (max 4000 chars)

string
template

HTML template with {{field}} placeholders (max 8000 chars); sanitized by the widget

string
controls
object
answerLength

Short | normal | long — caps output tokens and nudges the style

string
Allowed values: long normal short
budgetAction

When a self-set monthly budget is reached: stop | overage

string
Allowed values: overage stop
maxMessagesPerConversation

Visitor messages per conversation (≤ plan limit)

number
maxMessagesPerVisitorPerDay

Visitor messages per visitor per day (≤ plan limit)

number
monthlyConversationBudget

Self-imposed monthly conversation budget

number
monthlyTokenBudget

Self-imposed monthly token budget

number
escalation
object
enabled
boolean
provider
string
Allowed values: webhook trello
secret

HMAC secret used to sign escalation webhooks

string
trello
object
apiKey

Trello API key; send the mask to keep the stored one

string
labelIds
Array<string>
listId

Id of the list new cards are added to

string
memberIds
Array<string>
token

Trello token; send the mask to keep the stored one

string
webhookUrl
string
intents
Array<string>
llm
object
chatModel
required
string

Example

gpt-5.4-mini
provider
required
string
Allowed values: anthropic bedrock openai
reasoningEffort
string
Allowed values: low medium high
name
string
profile
object
about
string
allowOffTopic

Answer unrelated requests too (default false: stay on the business).

boolean
audience
string
blockedTopics
Array<object>
object
response

Canned reply; a polite refusal is used when empty.

string
topic
required
string
contact
object
address
string
email
string
hours
string
phone
string
doNot
string
glossary
Array<object>
object
definition
required
string
term
required
string
instructions
string
offering
string
policies
object
payment
string
returns
string
shipping
string
warranty
string
toneOfVoice
string
websiteUrl
string
remoteTools
Array<object>
object
description
string
enabled
boolean
inputSchema

JSON Schema (object) for the tool input

object
name
string
requiresAuth

Only offered to signed-in visitors.

boolean
timeoutMs
number
url
string
settings
object
channels
Array<string>
conversationTtlDays

Days a conversation (and its visitor images) is kept after the last message.

number
disabledTools
Array<string>
guestSessions

Allow anonymous sessions via POST /public/session (default true). When false every guest gets 403; visitor tokens minted by your server keep working.

boolean
languages
Array<string>
maxImageBytes
number
maxToolSteps

Maximum model steps (tool rounds) per reply

number
staleCloseHours

Close open conversations idle for this many hours

number
traceTtlDays

Days model-run traces (tool inputs, cited chunks, error texts) are kept. Defaults to conversationTtlDays and is capped by it.

number
vars

Free-form template variables, exposed as {{var:key}}

object
theme
object
assistantName

Assistant persona name; replaces {name} in the welcome message and is given to the model

string
backgroundColor

Panel background, hex

string
borderRadius

Panel/bubble corner radius in px (0-40)

number
botBubbleColor

Assistant bubble background, hex

string
customCss

Extra CSS injected into the widget shadow root (max 4000 chars)

string
defaultExpanded

Open the widget in full-screen mode by default

boolean
fontFamily

CSS font-family stack

string
labels

Label overrides per locale, e.g. { “tr”: { “title”: “Destek” }, “*”: { “send”: “OK” } }

object
launcherIcon
string
Allowed values: chat message help sparkles
logoUrl

Logo shown in the panel header (https URL)

string
position
string
Allowed values: left right
primaryColor

Launcher, header and visitor bubble colour, hex

string
primaryContrastColor

Text colour on the primary colour, hex

string
textColor

Body text colour, hex

string
title

Header title (overrides the locale default)

string
welcomeMessage

First assistant bubble shown while the conversation is empty

string
Media typeapplication/json
object
createdAt
required
string format: date-time
createdBy
string
id
required
string
updatedAt
required
string format: date-time
updatedBy
string
account
required
object
allowedOrigins
required
Array<string>
apiKeyPrefix
required

First characters of the admin API key

string
categories
required
Array<string>
clientTools
required
Array<object>
object
components
required
object
controls
required
object
escalation
object
intents
required
Array<string>
llm
required
object
name
required
string
profile
required
object
publishableKey
required
string
remoteTools
required
Array<string>
settings
required
object
slug
required
string
status
required
string
subscription
required
object
theme
required
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": {}
}