curl --request DELETE \
--url https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedRevision": 1,
"targetVersion": "0000000000000000000000000000000000000000000000000000000000000000"
}
'import requests
url = "https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}"
payload = {
"expectedRevision": 1,
"targetVersion": "0000000000000000000000000000000000000000000000000000000000000000"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expectedRevision: 1,
targetVersion: '0000000000000000000000000000000000000000000000000000000000000000'
})
};
fetch('https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'expectedRevision' => 1,
'targetVersion' => '0000000000000000000000000000000000000000000000000000000000000000'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}"
payload := strings.NewReader("{\n \"expectedRevision\": 1,\n \"targetVersion\": \"0000000000000000000000000000000000000000000000000000000000000000\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expectedRevision\": 1,\n \"targetVersion\": \"0000000000000000000000000000000000000000000000000000000000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expectedRevision\": 1,\n \"targetVersion\": \"0000000000000000000000000000000000000000000000000000000000000000\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"revision": 1,
"visibility": "personal",
"targetVersion": "<string>",
"feedback": {
"revision": 123,
"targetVersion": "<string>",
"signal": "helpful",
"reason": "<string>",
"correction": "<string>",
"sharedWithReviewers": true,
"updatedAt": "2023-11-07T05:31:56Z"
},
"review": {
"feedbackRevision": 123,
"status": "<string>",
"decision": "<string>",
"reviewedAt": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "route.not_found",
"message": "Not found",
"requestId": "req_x6q5vl75f5d53m7oet2k4r5w6a"
}
}Withdraw feedback
Requires a connection owned by a current workspace owner/admin with ai:use and conversations:read. Feedback belongs to that human and is also visible in the app. Only the exact connection that created the result can access it through this API; other connections and private app results are excluded. Read the current revision and targetVersion before saving or withdrawing. Identical lost-response retries are safe with the same body; stale changes return 409. No Idempotency-Key is needed. Personal visibility is the default. Explicit workspace visibility shares the answer and correction for workspace review. Withdrawal retains revision history and removes the active feedback. This records feedback using the existing feedback system; it does not guarantee a future answer, publish guidance, invoke a model, or consume AI generation credits.
curl --request DELETE \
--url https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedRevision": 1,
"targetVersion": "0000000000000000000000000000000000000000000000000000000000000000"
}
'import requests
url = "https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}"
payload = {
"expectedRevision": 1,
"targetVersion": "0000000000000000000000000000000000000000000000000000000000000000"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expectedRevision: 1,
targetVersion: '0000000000000000000000000000000000000000000000000000000000000000'
})
};
fetch('https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'expectedRevision' => 1,
'targetVersion' => '0000000000000000000000000000000000000000000000000000000000000000'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}"
payload := strings.NewReader("{\n \"expectedRevision\": 1,\n \"targetVersion\": \"0000000000000000000000000000000000000000000000000000000000000000\"\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"expectedRevision\": 1,\n \"targetVersion\": \"0000000000000000000000000000000000000000000000000000000000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.protodesk.io/v1/ai/feedback/{kind}/{targetId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expectedRevision\": 1,\n \"targetVersion\": \"0000000000000000000000000000000000000000000000000000000000000000\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"revision": 1,
"visibility": "personal",
"targetVersion": "<string>",
"feedback": {
"revision": 123,
"targetVersion": "<string>",
"signal": "helpful",
"reason": "<string>",
"correction": "<string>",
"sharedWithReviewers": true,
"updatedAt": "2023-11-07T05:31:56Z"
},
"review": {
"feedbackRevision": 123,
"status": "<string>",
"decision": "<string>",
"reviewedAt": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"code": "route.not_found",
"message": "Not found",
"requestId": "req_x6q5vl75f5d53m7oet2k4r5w6a"
}
}