Delete a Chatbot

This page helps you delete a Chatbot.

Delete API Guide

The Chatbot Deletion API allows you to delete a chatbot by providing the chatbot ID. This API can be used to remove a chatbot and its associated data from the system.



Request Headers

The API request must include the following header:

  • Authorization: Bearer <Your-Secret-Key> - The secret key for authenticating the API request.

Query Parameters

The request URL should include the following query parameter:

  • chatbotId (required): A unique identifier for the chatbot that you want to delete. It helps identify the specific chatbot to be removed from the system.

Example Request URL


The API response will be a JSON object with the following structure:

  "message": "Deleted successfully"

The message field in the response indicates the success of the chatbot deletion operation.


const res = await fetch(
    method: 'DELETE',
    headers: {
      Authorization: `Bearer <Your-Secret-Key>`

const data = await res.json();

console.log(data); // {message: 'Deleted successfully'}
import requests

url = ''
params = {'chatbotId': 'exampleId-123'}
headers = {
    'Authorization': 'Bearer <Your-Secret-Key>'

response = requests.delete(url, params=params, headers=headers)
data = response.json()

print(data)  # {'message': 'Deleted successfully'}
curl "" \
--request "DELETE" \
-H 'Authorization: Bearer <Your-API-Key>'
DELETE /api/v1/delete-chatbot?chatbotId=exampleId-123 HTTP/1.1
Authorization: Bearer <Your-Secret-Key>

Error Handling

If there are any errors during the API request, appropriate HTTP status codes will be returned along with error messages in the response body. Make sure to handle these errors gracefully in your application.

That's it! You should now be able to delete a chatbot using the Chatbot Deletion API.