Delete a chat
curl --request DELETE \
--url https://api.arg.ai/api/chats/{chatId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/chats/{chatId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/chats/{chatId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Chats
Delete a chat
Delete a chat. Blocked while an agent run is in flight on it.
DELETE
/
api
/
chats
/
{chatId}
Delete a chat
curl --request DELETE \
--url https://api.arg.ai/api/chats/{chatId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.arg.ai/api/chats/{chatId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.arg.ai/api/chats/{chatId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}