Delete session
Delete a session by its UUID
Endpoint
POST / api / v1 / session / {uuid} / delete
Authorization
Authorization: string Bearer <your_token>
Path
uuid string required
Request example
curl --location --request POST 'https://app.aichatbothub.com/api/v1/session/{uuid}/delete' \
--header 'Authorization: Bearer <token>'
import requests
uuid = '<message-uuid>'
url = f'https://app.aichatbothub.com/api/v1/session/{uuid}/delete'
headers = {
'Authorization': 'Bearer <token>'
}
response = requests.POST(url, headers=headers)
if response.status_code == 200:
print("Request successful! Session deleted.")
else:
print("Request failed with status code:", response.status_code)
print(response.text)
const axios = require("axios");
const uuid = "<message-uuid>";
const url = `https://app.aichatbothub.com/api/v1/session/${uuid}/delete`;
const headers = {
Authorization: "Bearer <token>",
};
axios
.post(url, { headers })
.then((response) => {
console.log("Request successful! Session deleted.");
})
.catch((error) => {
console.error("Request failed:", error);
});
success boolean
Indicates if API call was successful
Response example