curl --request GET \
--url https://haico.gr/api/conversations/{thread_id}/graph \
--header 'Authorization: Bearer <token>'import requests
url = "https://haico.gr/api/conversations/{thread_id}/graph"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://haico.gr/api/conversations/{thread_id}/graph', 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://haico.gr/api/conversations/{thread_id}/graph",
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://haico.gr/api/conversations/{thread_id}/graph"
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://haico.gr/api/conversations/{thread_id}/graph")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://haico.gr/api/conversations/{thread_id}/graph")
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{
"root_thread_id": "<string>",
"requested_thread_id": "<string>",
"nodes": [
{
"id": "<string>",
"thread_id": "<string>",
"turn_index": 123,
"captured_at": "2023-11-07T05:31:56Z",
"artifact_count": 123,
"is_latest_in_thread": true,
"is_on_active_path": true,
"user_message": "<string>",
"assistant_summary": "<string>",
"reasoning_steps": 0
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>",
"kind": "<string>",
"reason": "<string>"
}
],
"threads": [
{
"thread_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"is_current": true,
"title": "<string>",
"parent_thread_id": "<string>",
"branch_point_turn": 123
}
],
"truncated": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get Conversation Graph
Return the conversation family of a thread as a read-only DAG.
Nodes are completed user turns (one per workspace snapshot), edges are sequential turns within a thread or fork points between threads. The response includes every thread in the family so empty branches can be rendered as stubs.
Args: user: The authenticated user (must own the requested thread). thread_id: The thread whose family to render. db: Database session.
Returns:
The ConversationGraphResponse DAG payload.
Raises: HTTPException 403: The conversation belongs to another user. HTTPException 404: Unknown conversation.
curl --request GET \
--url https://haico.gr/api/conversations/{thread_id}/graph \
--header 'Authorization: Bearer <token>'import requests
url = "https://haico.gr/api/conversations/{thread_id}/graph"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://haico.gr/api/conversations/{thread_id}/graph', 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://haico.gr/api/conversations/{thread_id}/graph",
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://haico.gr/api/conversations/{thread_id}/graph"
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://haico.gr/api/conversations/{thread_id}/graph")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://haico.gr/api/conversations/{thread_id}/graph")
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{
"root_thread_id": "<string>",
"requested_thread_id": "<string>",
"nodes": [
{
"id": "<string>",
"thread_id": "<string>",
"turn_index": 123,
"captured_at": "2023-11-07T05:31:56Z",
"artifact_count": 123,
"is_latest_in_thread": true,
"is_on_active_path": true,
"user_message": "<string>",
"assistant_summary": "<string>",
"reasoning_steps": 0
}
],
"edges": [
{
"id": "<string>",
"source": "<string>",
"target": "<string>",
"kind": "<string>",
"reason": "<string>"
}
],
"threads": [
{
"thread_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"is_current": true,
"title": "<string>",
"parent_thread_id": "<string>",
"branch_point_turn": 123
}
],
"truncated": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
A personal access token (haico_pat_...), created under Profile → API keys. Send it as Authorization: Bearer <key>. The browser session JWT is also accepted but is an internal mechanism and is not part of the public contract.
Path Parameters
1 - 255Response
Successful Response
The whole conversation family rendered as a DAG.