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.
https://api.qwryai.com/public/v1/tools/update_stylesAuthentication
Send your API key as Authorization: Bearer YOUR_API_KEY. 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 agent's current updatedAt, from get_chat_interface. A stale value is refused. |
changes | array | Yes | The style fields to change, each { "field", "value" }. |
The fields this page uses:
| Field | Value |
|---|---|
agentPictureUrl | The image's http or https address, up to 2,048 characters. |
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-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 status | code | When |
|---|---|---|
| 400 | INVALID_ARGUMENTS | A field name or value fails the schema, such as an address that isn't http or https. |
| 403 | INSUFFICIENT_PERMISSION | The key doesn't hold Change agent settings. |
| 409 | NOTHING_TO_CHANGE | The values are already set. |
| 409 | STALE_CONFIGURATION | expectedUpdatedAt isn't the agent's current updatedAt. Read get_chat_interface again. |
See Error Handling for authentication and rate-limit errors.