Documentation

Delete Chatbot Profile Picture

Delete a chatbots profile picture.

Delete Chatbot Profile Picture API Guide

The Delete Chatbot Profile Picture API endpoint allows you to delete the profile picture of a specific chatbot.

Endpoint

DELETE https://www.chatbase.co/api/v1/delete-chatbot-profile-picture

Request Headers

The API request must include the following headers:

  • Authorization: Bearer <Your-Secret-Key> - The secret key for authenticating the API request.
  • Accept: application/json - The accepted response content type.

Request Parameters

  • chatbotId (string, required): A unique identifier for the chatbot you want to delete the profile picture for.

Example Request

curl --request DELETE \
     --url 'https://www.chatbase.co/api/v1/delete-chatbot-profile-picture?chatbotId=%5BYour%20Chatbot%20ID%5D' \
     --header 'accept: application/json'
const options = {method: 'DELETE', headers: {accept: 'application/json'}};

fetch('https://www.chatbase.co/api/v1/delete-chatbot-profile-picture?chatbotId=%5BYour%20Chatbot%20ID%5D', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));
DELETE /api/v1/delete-chatbot-profile-picture?chatbotId=%5BYour%20Chatbot%20ID%5D HTTP/1.1
Accept: application/json
Host: www.chatbase.co
import requests

url = "https://www.chatbase.co/api/v1/delete-chatbot-profile-picture?chatbotId=%5BYour%20Chatbot%20ID%5D"

headers = {"accept": "application/json"}

response = requests.delete(url, headers=headers)

print(response.text)

Response

  • 200: Reply confirming the successful deletion of the chatbot's profile picture.
  • 400: If the chatbot ID is missing.
  • 401: If the request is unauthorized.
  • 404: If the chatbot cannot be found.
  • 500: If there is an internal server error.

The Delete Chatbot Profile Picture API endpoint provides a way to remove the profile picture of a chatbot. Upon successful deletion, a confirmation message is returned in the response.