Delete chatbot
Delete single chatbot base on uuid
Endpoint
DELETE /api/v1/chatbot/{uuid}/delete
Authorization
Authorization: string Bearer <your_token>
Path Parameters
uuid: string
The unique identifier of the chatbot to be deleted.
Request example
curl --location --request DELETE 'https://app.aichatbothub.com/api/v1/chatbot/{uuid}/delete' \
--header 'Authorization: Bearer <token>'
import requests
uuid = '<chatbot-uuid>'
url = f'https://app.aichatbothub.com/api/v1/chatbot/{uuid}/delete'
headers = {
'Authorization': 'Bearer <token>'
}
response = requests.delete(url, headers=headers)
if response.status_code == 200:
print("Request successful! Chatbot deleted.")
else:
print("Request failed with status code:", response.status_code)
print(response.text)
const axios = require('axios');
const uuid = '<chatbot-uuid>'
const url = `https://app.aichatbothub.com/api/v1/chatbot/${uuid}/delete`;
const headers = {
'Authorization': 'Bearer <token>'
};
axios.delete(url, { headers })
.then(response => {
console.log('Request successful! Chatbot deleted.');
})
.catch(error => {
console.error('Request failed:', error);
});
Response
Body