Delete chatbot profile picture
DELETE/v1/chatbots/{chatbotId}/profile-picture
Remove the profile picture of a chatbot with the legacy v1 API so messages show the default avatar again.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
Removes the profile picture of a chatbot. Call it when the avatar next to the chatbot's messages should go back to the default.
Request
DELETE /v1/chatbots/{chatbotId}/profile-picture
Path parameters:
| Name | Type | Required | Description |
|---|---|---|---|
chatbotId |
string | Yes | The ID of the chatbot, starting with agt_. |
The request has no body. The profile picture is the avatar shown beside the chatbot's replies, in the chat window and in the conversation list of your team. The icon on the chat bubble is a separate asset, see Delete chatbot icon.
Example request
curl -X DELETE https://api.askocto.co/v1/chatbots/agt_8f3k2m/profile-picture \
-H "Authorization: Bearer $OCTO_API_KEY"
const response = await fetch(
"https://api.askocto.co/v1/chatbots/agt_8f3k2m/profile-picture",
{
method: "DELETE",
headers: { Authorization: `Bearer ${process.env.OCTO_API_KEY}` },
},
)
if (!response.ok) {
throw new Error(`Request failed with status ${response.status}`)
}
console.log(await response.json())
Example response
A successful call returns 200 OK.
{
"chatbotId": "agt_8f3k2m",
"deleted": true
}
Response fields
| Name | Type | Description |
|---|---|---|
chatbotId |
string | The chatbot the profile picture belonged to. |
deleted |
boolean | true once the profile picture is removed. |
Calling the endpoint on a chatbot without a custom profile picture is not an error. It returns the same response. To set a new picture, use Upload chatbot profile picture.
Errors
| Status | Code | When |
|---|---|---|
| 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. |
For the shared v1 conventions, read the v1 overview. New integrations should use API v2.