Skip to content

Delete Chatbot Icon

Delete Chatbot Icon

This endpoint allows you to remove the icon image from a chatbot. After deletion, the chatbot will use the default icon.

Endpoint

DELETE https://api.nexvio.ai/v1/chatbots/{chatbotId}/icon

Headers

NameRequiredDescription
AuthorizationYesYour API key in the format: Bearer YOUR_API_KEY

Path Parameters

ParameterTypeRequiredDescription
chatbotIdstringYesThe ID of the chatbot

Response

{
"status": "success",
"data": {
"deleted": true,
"chatbot_id": "chatbot_456def"
}
}

Error Responses

Authentication Error

{
"status": "error",
"error": {
"code": "unauthorized",
"message": "Invalid API key"
}
}

Not Found Error

{
"status": "error",
"error": {
"code": "not_found",
"message": "Chatbot not found"
}
}

No Icon Error

{
"status": "error",
"error": {
"code": "not_found",
"message": "This chatbot does not have a custom icon"
}
}

Default Behavior

When you delete a chatbot’s custom icon:

  1. Any custom icon previously uploaded for this chatbot will be permanently removed
  2. The chatbot’s chat bubble will revert to using the default icon provided by Nexvio.ai
  3. The change will take effect immediately for all users

Code Examples

cURL

Terminal window
curl -X DELETE "https://api.nexvio.ai/v1/chatbots/chatbot_456def/icon" \
-H "Authorization: Bearer YOUR_API_KEY"

JavaScript

const chatbotId = 'chatbot_456def';
const response = await fetch(`https://api.nexvio.ai/v1/chatbots/${chatbotId}/icon`, {
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
if (data.status === 'success') {
console.log('Chatbot icon has been successfully deleted.');
// Update your UI if needed
}

Python

import requests
chatbot_id = "chatbot_456def"
url = f"https://api.nexvio.ai/v1/chatbots/{chatbot_id}/icon"
headers = {
"Authorization": "Bearer YOUR_API_KEY"
}
response = requests.delete(url, headers=headers)
data = response.json()
print(data)
if data["status"] == "success":
print("Chatbot icon has been successfully deleted.")
# Update your application state if needed

Use Cases

Some common reasons to delete a chatbot icon:

  1. Replacing an outdated brand image with the default while preparing a new design
  2. Maintaining visual consistency across multiple chatbots by using the standard icon
  3. Removing a custom icon that doesn’t display well on certain backgrounds
  4. Troubleshooting display issues by reverting to the default icon