Skip to content
QwryAI
Documentation
Pages

Endpoints

Upload chatbot profile picture

Set the agent picture from an image URL with update_styles

API v1's profile picture upload has no direct equivalent: QwryAI doesn't take image files through the API. Host the image yourself, then set it as the agent picture with the Tools API's update_styles tool. The agent picture shows beside the agent's messages in the chat widget and in Center Stage. 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
agentPictureUrlThe 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": "agentPictureUrl", "value": "https://cdn.example.com/brand/agent.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