Conversations
Supprimer une conversation
Supprime la conversation et son historique. La suppression est refusée tant qu’un turn est queued ou running.
DELETE
/
api
/
partners
/
v1
/
conversations
/
{conversation_id}
Supprimer une conversation
curl --request DELETE \
--url https://gpt-de-babi.perfproai.com/api/partners/v1/conversations/{conversation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gpt-de-babi.perfproai.com/api/partners/v1/conversations/{conversation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gpt-de-babi.perfproai.com/api/partners/v1/conversations/{conversation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"deleted": true,
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}⌘I
Supprimer une conversation
curl --request DELETE \
--url https://gpt-de-babi.perfproai.com/api/partners/v1/conversations/{conversation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gpt-de-babi.perfproai.com/api/partners/v1/conversations/{conversation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gpt-de-babi.perfproai.com/api/partners/v1/conversations/{conversation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"deleted": true,
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}