Endpoints
Update agent styles
Change how the Chat bubble and Center Stage look: theme, colors, launcher, fonts and more
update_styles changes the look of the agent's Chat bubble and its Center Stage, the settings on the Playground's style panels. Send only the fields you want to change. Like every agent update, it returns a review first; nothing changes until you apply it. Applied styles save to the agent's draft, so the Playground shows them at once and your website gets them when you publish.
The Chat bubble's text and behaviour, such as its name, placeholder and welcome messages, are in update_chat_interface. See Update agent.
https://api.qwryai.com/public/v1/tools/update_stylesAuthentication
Send your API key as Authorization: Bearer <api-key>, or in an x-api-key header. The key needs Change agent settings. See Authentication.
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
chatbotId | string | Yes | The agent's id, from List agents. |
expectedUpdatedAt | string | Yes | The updatedAt from get_chat_interface or agent_configuration. |
changes | array | Yes | 1 to 20 { "field", "value" } items, each field once. |
Chat bubble fields
field | value |
|---|---|
theme | light or dark. |
primaryColor, bubbleColor, botMessageColor, userMessageColor | A hex color such as #0F766E. bubbleColor is the launcher button. |
coloredHeader | true to color the header with the primary color. |
position | bottom-right or bottom-left. |
launcherIcon | sparkles, filled, outline, bubbles or custom. |
launcherIconUrl | The custom icon's https address. Goes live at once. |
launcherIconAlignment | left or right. |
radius | sharp, soft, round or pill. |
fontFamily | Inter, System, Arial, Helvetica, Georgia or Geist. |
fontSize | 12, 14, 16, 18 or 20. |
agentPictureUrl | The agent picture's https address, shared with Center Stage. Goes live at once. |
avatarBorder, agentMessageBubble | true or false. |
accentColorEnabled, accentColorOnSendIcon | true or false. |
tintedGrayscale | true to tint the grays. |
grayscaleHue, grayscaleTint, grayscaleShade | Hue 0 to 360, tint 0 to 9, shade -4 to 4. |
footer | Footer text, up to 500 characters. |
collectUserFeedback, enableAttachments | true or false. |
Center Stage fields
field | value |
|---|---|
centerStageTheme | light or dark. |
centerStageAccentColor | A hex color. |
centerStageAccentColorEnabled, centerStageAccentColorOnSendIcon | true or false. |
centerStageInputBox | light, dark or tinted. |
centerStageFontFamily, centerStageFontSize | As for the Chat bubble. |
centerStageAvatarBorder, centerStageAgentMessageBubble | true or false. |
centerStageTintedGrayscale, centerStageGrayscaleHue, centerStageGrayscaleTint, centerStageGrayscaleShade | As for the Chat bubble. |
centerStageFooter | Footer text, up to 500 characters. |
centerStageCollectUserFeedback, centerStageEnableAttachments | true or false. |
Request example
curl -X POST 'https://api.qwryai.com/public/v1/tools/update_styles' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"chatbotId": "YOUR_AGENT_ID",
"expectedUpdatedAt": "2026-11-30T21:14:08.512Z",
"changes": [
{ "field": "theme", "value": "dark" },
{ "field": "bubbleColor", "value": "#0F766E" },
{ "field": "radius", "value": "round" }
]
}'const API = "https://api.qwryai.com/public/v1";
const headers = { Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json" };
const { data: review } = await fetch(`${API}/tools/update_styles`, {
method: "POST",
headers,
body: JSON.stringify({
chatbotId: "YOUR_AGENT_ID",
expectedUpdatedAt: "2026-11-30T21:14:08.512Z",
changes: [
{ field: "theme", value: "dark" },
{ field: "bubbleColor", value: "#0F766E" },
{ field: "radius", value: "round" },
],
}),
}).then((r) => r.json());
await fetch(`${API}/reviews/${review.reviewId}/apply`, { method: "POST", headers });import requests
API = "https://api.qwryai.com/public/v1"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
review = requests.post(f"{API}/tools/update_styles", headers=headers, json={
"chatbotId": "YOUR_AGENT_ID",
"expectedUpdatedAt": "2026-11-30T21:14:08.512Z",
"changes": [
{"field": "theme", "value": "dark"},
{"field": "bubbleColor", "value": "#0F766E"},
{"field": "radius", "value": "round"},
],
}).json()["data"]
requests.post(f"{API}/reviews/{review['reviewId']}/apply", headers=headers)Response
{
"success": true,
"data": {
"status": "review_required",
"reviewId": "8b3f1c6e-2d7a-4e95-b0c4-7a1e5d9f2b63",
"tool": "update_styles",
"changes": [
{ "title": "Widget theme", "before": "light", "after": "dark" },
{ "title": "Chat bubble color", "before": "#1F2937", "after": "#0F766E" }
],
"unchanged": [{ "field": "ui.chatBubble.radius", "value": "round" }],
"expiresAt": "2026-12-01T10:15:00.000Z",
"next": "Show these changes to the user. Call apply_change with this reviewId only after they approve; the review expires in 15 minutes."
}
}Fields that already had the value you sent come back in unchanged. Apply the review with POST /public/v1/reviews/{reviewId}/apply within 15 minutes; see Update agent for the applied response.
Errors
| HTTP status | Code | When |
|---|---|---|
| 400 | INVALID_ARGUMENTS | An unknown or repeated field, or a value out of range, such as a color that isn't #RRGGBB. issues lists each one. |
| 400 | CHATBOT_ID_REQUIRED | The body has no valid chatbotId. |
| 401 | API_KEY_REQUIRED / INVALID_API_KEY | No credential, or an unknown, deleted or expired one. |
| 403 | INSUFFICIENT_PERMISSION | The key doesn't hold Change agent settings. |
| 404 | CHATBOT_NOT_FOUND | No agent with that chatbotId in your workspace. |
| 409 | NOTHING_TO_CHANGE | Every value you sent is already set. |
| 409 | STALE_CONFIGURATION | expectedUpdatedAt isn't the agent's current updatedAt. Read it again. |
| 409 | STALE_REVIEW / REVIEW_EXPIRED | Applying: the agent changed after the review, or 15 minutes passed. Call the tool again. |
| 429 | INTEGRATION_RATE_LIMIT_EXCEEDED | More than 2,000 requests in 15 minutes. |
See Error Handling for every code.