API
Delete a chatbot
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.
Endpoint
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
Response
The API response will be a JSON object with the following structure:
The message
field in the response indicates the success of the chatbot deletion operation.
Examples
JavaScript
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.