Undo eligible Evelin actions
curl --request POST \
--url https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"proposalIds": [
"PROPOSAL_ID"
]
}
'import requests
url = "https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo"
payload = { "proposalIds": ["PROPOSAL_ID"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({proposalIds: ['PROPOSAL_ID']})
};
fetch('https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo', 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/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'proposalIds' => [
'PROPOSAL_ID'
]
]),
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/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo"
payload := strings.NewReader("{\n \"proposalIds\": [\n \"PROPOSAL_ID\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"proposalIds\": [\n \"PROPOSAL_ID\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"proposalIds\": [\n \"PROPOSAL_ID\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"proposalId": "<string>",
"runId": "<string>",
"effectId": "<string>",
"type": "<string>",
"target": {},
"before": {},
"after": {},
"confirmedAt": "2023-11-07T05:31:56Z",
"undo": {
"status": "available",
"undoneAt": "2023-11-07T05:31:56Z"
}
}
]
}{
"error": {
"code": "route.not_found",
"message": "Not found",
"requestId": "req_x6q5vl75f5d53m7oet2k4r5w6a"
}
}Assistant chats
Undo eligible Evelin actions
Only this API key or OAuth grant can access this chat. Requires current owner/admin membership. Chats retain a ceiling of the permissions granted at creation; added permissions require a new chat. Private app chats and other clients are isolated. External integrations such as Linear are unavailable. Requires conversations:write. Only status and priority receipts with undo.status=available can be undone, once, with current revision checks. Repeated requests return the durable result.
POST
/
ai
/
assistant
/
sessions
/
{sessionId}
/
turns
/
{turnId}
/
actions
/
undo
Undo eligible Evelin actions
curl --request POST \
--url https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"proposalIds": [
"PROPOSAL_ID"
]
}
'import requests
url = "https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo"
payload = { "proposalIds": ["PROPOSAL_ID"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({proposalIds: ['PROPOSAL_ID']})
};
fetch('https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo', 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/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'proposalIds' => [
'PROPOSAL_ID'
]
]),
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/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo"
payload := strings.NewReader("{\n \"proposalIds\": [\n \"PROPOSAL_ID\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"proposalIds\": [\n \"PROPOSAL_ID\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns/{turnId}/actions/undo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"proposalIds\": [\n \"PROPOSAL_ID\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"proposalId": "<string>",
"runId": "<string>",
"effectId": "<string>",
"type": "<string>",
"target": {},
"before": {},
"after": {},
"confirmedAt": "2023-11-07T05:31:56Z",
"undo": {
"status": "available",
"undoneAt": "2023-11-07T05:31:56Z"
}
}
]
}{
"error": {
"code": "route.not_found",
"message": "Not found",
"requestId": "req_x6q5vl75f5d53m7oet2k4r5w6a"
}
}Restore an eligible status or priority change using its action receipt.
See Chat with Evelin for setup, permissions, retries, and the full workflow.
Authorizations
Use a workspace API key in the Authorization header: Bearer pk_.... Older pk_live_ and pk_test_ keys remain valid; their prefixes do not isolate data or select a separate environment.
Path Parameters
Minimum string length:
1Minimum string length:
1Body
application/json
Required array length:
1 - 6 elementsMinimum string length:
1Response
Successful operation.
Show child attributes
Show child attributes
