Skip to content
QwryAI
Documentation
Pages

Endpoints

Upload chatbot icon

Set a custom chat bubble icon from an image URL with update_styles

API v1's icon upload has no direct equivalent: QwryAI doesn't take image files through the API. Host the image yourself, then point the chat bubble's launcher icon at its address with the Tools API's update_styles tool. The change returns a review, and nothing changes until you apply it. The full reference is Update agent styles.

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

Authentication

Send your API key as Authorization: Bearer YOUR_API_KEY. The key needs Change agent settings. See Authentication.

Body parameters

NameTypeRequiredDescription
chatbotIdstringYesThe agent's id, from list_agents.
expectedUpdatedAtstringYesThe agent's current updatedAt, from get_chat_interface. A stale value is refused.
changesarrayYesThe style fields to change, each { "field", "value" }.

The fields this page uses:

FieldValue
launcherIconSet to custom to show your own image. The built-in icons are sparkles, filled, outline and bubbles.
launcherIconUrlThe image's http or https address, up to 2,048 characters.

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-30T18:56:55.709Z",
    "changes": [
      { "field": "launcherIcon", "value": "custom" },
      { "field": "launcherIconUrl", "value": "https://cdn.example.com/brand/chat-icon.png" }
    ]
  }'

Response

The response is a review. Apply it with POST https://api.qwryai.com/public/v1/reviews/{reviewId}/apply within 15 minutes. See Agents › Reviewed updates.

Errors

HTTP statuscodeWhen
400INVALID_ARGUMENTSA field name or value fails the schema, such as an address that isn't http or https.
403INSUFFICIENT_PERMISSIONThe key doesn't hold Change agent settings.
409NOTHING_TO_CHANGEThe values are already set.
409STALE_CONFIGURATIONexpectedUpdatedAt isn't the agent's current updatedAt. Read get_chat_interface again.

See Error Handling for authentication and rate-limit errors.

Explore the documentation