Skip to content
QwryAI
Documentation
Pages

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.

POSThttps://api.qwryai.com/public/v1/tools/update_styles

Authentication

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

NameTypeRequiredDescription
chatbotIdstringYesThe agent's id, from List agents.
expectedUpdatedAtstringYesThe updatedAt from get_chat_interface or agent_configuration.
changesarrayYes1 to 20 { "field", "value" } items, each field once.

Chat bubble fields

fieldvalue
themelight or dark.
primaryColor, bubbleColor, botMessageColor, userMessageColorA hex color such as #0F766E. bubbleColor is the launcher button.
coloredHeadertrue to color the header with the primary color.
positionbottom-right or bottom-left.
launcherIconsparkles, filled, outline, bubbles or custom.
launcherIconUrlThe custom icon's https address. Goes live at once.
launcherIconAlignmentleft or right.
radiussharp, soft, round or pill.
fontFamilyInter, System, Arial, Helvetica, Georgia or Geist.
fontSize12, 14, 16, 18 or 20.
agentPictureUrlThe agent picture's https address, shared with Center Stage. Goes live at once.
avatarBorder, agentMessageBubbletrue or false.
accentColorEnabled, accentColorOnSendIcontrue or false.
tintedGrayscaletrue to tint the grays.
grayscaleHue, grayscaleTint, grayscaleShadeHue 0 to 360, tint 0 to 9, shade -4 to 4.
footerFooter text, up to 500 characters.
collectUserFeedback, enableAttachmentstrue or false.

Center Stage fields

fieldvalue
centerStageThemelight or dark.
centerStageAccentColorA hex color.
centerStageAccentColorEnabled, centerStageAccentColorOnSendIcontrue or false.
centerStageInputBoxlight, dark or tinted.
centerStageFontFamily, centerStageFontSizeAs for the Chat bubble.
centerStageAvatarBorder, centerStageAgentMessageBubbletrue or false.
centerStageTintedGrayscale, centerStageGrayscaleHue, centerStageGrayscaleTint, centerStageGrayscaleShadeAs for the Chat bubble.
centerStageFooterFooter text, up to 500 characters.
centerStageCollectUserFeedback, centerStageEnableAttachmentstrue or false.

Request example

Bash
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" }
    ]
  }'

Response

JSON
{
  "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 statusCodeWhen
400INVALID_ARGUMENTSAn unknown or repeated field, or a value out of range, such as a color that isn't #RRGGBB. issues lists each one.
400CHATBOT_ID_REQUIREDThe body has no valid chatbotId.
401API_KEY_REQUIRED / INVALID_API_KEYNo credential, or an unknown, deleted or expired one.
403INSUFFICIENT_PERMISSIONThe key doesn't hold Change agent settings.
404CHATBOT_NOT_FOUNDNo agent with that chatbotId in your workspace.
409NOTHING_TO_CHANGEEvery value you sent is already set.
409STALE_CONFIGURATIONexpectedUpdatedAt isn't the agent's current updatedAt. Read it again.
409STALE_REVIEW / REVIEW_EXPIREDApplying: the agent changed after the review, or 15 minutes passed. Call the tool again.
429INTEGRATION_RATE_LIMIT_EXCEEDEDMore than 2,000 requests in 15 minutes.

See Error Handling for every code.

Explore the documentation