Delete a chat session
DELETE
/ai/chats/{chat}
const url = 'http://localhost:8000/api/v1/ai/chats/1';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:8000/api/v1/ai/chats/1 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” chat
required
integer
Responses
Section titled “ Responses ”Deleted
Not found