Delete multiple messages
Delete list of messages base on their uuids
Endpoint
POST / api / v1 / messages / delete
Authorization
Authorization string Bearer <your_token>
Path
uuids string[] required
Request example
curl --location --request POST 'https://app.aichatbothub.com/api/v1/messages/delete' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>'
--data-raw '{
"uuids": []
}'
import requests
url = 'https://app.aichatbothub.com/api/v1/messages/delete'
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <token>'
}
data = {
"uuids": [],
}
response = requests.POST(url, headers=headers, json=data)
if response.status_code == 200:
print("Request successful! Messages deleted.")
else:
print("Request failed with status code:", response.status_code)
print(response.text)
const axios = require('axios');
const url = 'https://app.aichatbothub.com/api/v1/messages/delete';
const headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <token>'
};;
const data = {
"uuids": []
};
axios.post(url, data, { headers })
.then(response => {
console.log('Request successful! Messages deleted.');
})
.catch(error => {
console.error('Request failed:', error);
});
success boolean
Indicates if api call was successful
Response example