List Evelin chat turns
curl --request GET \
--url https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"sessionId": "<string>",
"conversationId": "<string>",
"runId": "<string>",
"status": "<string>",
"question": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"approvalMode": "<string>",
"retryOfTurnId": "<string>",
"answer": {
"answer": "<string>",
"warnings": [
"<string>"
],
"citations": [
{}
],
"proposals": [
{}
],
"actionProposals": [
{
"id": "<string>",
"type": "<string>",
"target": {},
"before": {},
"after": {},
"confirmationRequired": true
}
]
},
"actionConfirmations": [
{
"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
List Evelin chat turns
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. Returns retained turns in chronological order. Use get_evelin_chat_turn to poll one pending answer.
GET
/
ai
/
assistant
/
sessions
/
{sessionId}
/
turns
List Evelin chat turns
curl --request GET \
--url https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.protodesk.io/v1/ai/assistant/sessions/{sessionId}/turns")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"sessionId": "<string>",
"conversationId": "<string>",
"runId": "<string>",
"status": "<string>",
"question": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"approvalMode": "<string>",
"retryOfTurnId": "<string>",
"answer": {
"answer": "<string>",
"warnings": [
"<string>"
],
"citations": [
{}
],
"proposals": [
{}
],
"actionProposals": [
{
"id": "<string>",
"type": "<string>",
"target": {},
"before": {},
"after": {},
"confirmationRequired": true
}
]
},
"actionConfirmations": [
{
"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"
}
}Read a chat’s retained questions, answers, proposals, and action receipts.
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:
1Response
Successful operation.
Show child attributes
Show child attributes
