Upload chatbot profile picture
POST/v1/chatbots/{chatbotId}/profile-picture
Upload the avatar that appears next to a chatbot's replies with the legacy v1 API using a multipart form.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
Uploads the avatar shown next to the replies of a chatbot. Call it when you manage the look of many chatbots from a script.
Request
POST /v1/chatbots/{chatbotId}/profile-picture
This endpoint takes multipart/form-data, not JSON.
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
chatbotId |
string | Yes | The ID of the chatbot, starting with agt_. |
Form fields:
| Name | Type | Required | Description |
|---|---|---|---|
file |
file | Yes | The image to use. PNG, JPEG or WebP. The picture is shown as a circle, so keep the subject centered. |
A new upload replaces the current picture. The chat bubble icon is a different asset, see Upload chatbot icon.
Example request
curl -X POST https://api.askocto.co/v1/chatbots/agt_8f3k2m/profile-picture \
-H "Authorization: Bearer $OCTO_API_KEY" \
-F "file=@./avatar.webp"
import { openAsBlob } from "node:fs"
const form = new FormData()
form.append("file", await openAsBlob("./avatar.webp"), "avatar.webp")
const response = await fetch(
"https://api.askocto.co/v1/chatbots/agt_8f3k2m/profile-picture",
{
method: "POST",
headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` },
body: form,
},
)
console.log(await response.json())
Leave the Content-Type header unset. fetch fills in the multipart boundary for you.
Example response
A successful call returns 200 OK.
{
"chatbotId": "agt_8f3k2m",
"profilePictureUrl": "https://cdn.askocto.co/assets/agt_8f3k2m/profile-picture.webp",
"updatedAt": "2026-03-14T09:30:00Z"
}
Response fields
| Name | Type | Description |
|---|---|---|
chatbotId |
string | The chatbot that now uses the picture. |
profilePictureUrl |
string | Public URL of the stored picture. |
updatedAt |
string | ISO 8601 UTC time of the upload. |
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_request |
The file field is missing or is not a PNG, JPEG or WebP image. |
| 401 | unauthorized |
The API key is missing, malformed or revoked. |
| 404 | not_found |
No chatbot with this ID exists in your workspace. |
| 429 | rate_limited |
Too many requests. Wait for the number of seconds in the Retry-After header. |
To remove the picture again, call Delete chatbot profile picture.