Delete Chatbot
Request
To replace the data of your chatbot with new data you need to make a DELETE
request to https://www.chatbase.co/api/v1/delete-chatbot
with the Headers: Authorization: Bearer <Your-Secret-Key>
and payload that looks like:
Example Requests
cURL
curl "https://www.chatbase.co/api/v1/delete-chatbot?chatbotId=exampleId-123" \ --request "DELETE" \ -H 'Authorization: Bearer <Your-API-Key>'
Javascript
const res = await fetch( 'https://www.chatbase.co/api/v1/delete-chatbot?chatbotId=exampleId-123', { method: 'DELETE', headers: { Authorization: `Bearer <Your-Secret-Key>` } } ); const data = await res.json(); console.log(data); // {message: 'Deleted successfully'}
Response
{"message": "Deleted successfully"}