Read the SQLite session trace timeline
curl --request POST \
--url http://localhost:3000/api/v1/sessions/trace \
--header 'Content-Type: application/json' \
--data '
{
"nameOrKey": "<string>",
"correlation": "<string>",
"explain": true,
"includeStream": true,
"limit": "<string>",
"message": "<string>",
"only": "<string>",
"raw": true,
"run": "<string>",
"showSystemPrompt": true,
"showUserPrompt": true,
"since": "<string>",
"turn": "<string>",
"until": "<string>"
}
'import requests
url = "http://localhost:3000/api/v1/sessions/trace"
payload = {
"nameOrKey": "<string>",
"correlation": "<string>",
"explain": True,
"includeStream": True,
"limit": "<string>",
"message": "<string>",
"only": "<string>",
"raw": True,
"run": "<string>",
"showSystemPrompt": True,
"showUserPrompt": True,
"since": "<string>",
"turn": "<string>",
"until": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
nameOrKey: '<string>',
correlation: '<string>',
explain: true,
includeStream: true,
limit: '<string>',
message: '<string>',
only: '<string>',
raw: true,
run: '<string>',
showSystemPrompt: true,
showUserPrompt: true,
since: '<string>',
turn: '<string>',
until: '<string>'
})
};
fetch('http://localhost:3000/api/v1/sessions/trace', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/sessions/trace",
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([
'nameOrKey' => '<string>',
'correlation' => '<string>',
'explain' => true,
'includeStream' => true,
'limit' => '<string>',
'message' => '<string>',
'only' => '<string>',
'raw' => true,
'run' => '<string>',
'showSystemPrompt' => true,
'showUserPrompt' => true,
'since' => '<string>',
'turn' => '<string>',
'until' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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 := "http://localhost:3000/api/v1/sessions/trace"
payload := strings.NewReader("{\n \"nameOrKey\": \"<string>\",\n \"correlation\": \"<string>\",\n \"explain\": true,\n \"includeStream\": true,\n \"limit\": \"<string>\",\n \"message\": \"<string>\",\n \"only\": \"<string>\",\n \"raw\": true,\n \"run\": \"<string>\",\n \"showSystemPrompt\": true,\n \"showUserPrompt\": true,\n \"since\": \"<string>\",\n \"turn\": \"<string>\",\n \"until\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("http://localhost:3000/api/v1/sessions/trace")
.header("Content-Type", "application/json")
.body("{\n \"nameOrKey\": \"<string>\",\n \"correlation\": \"<string>\",\n \"explain\": true,\n \"includeStream\": true,\n \"limit\": \"<string>\",\n \"message\": \"<string>\",\n \"only\": \"<string>\",\n \"raw\": true,\n \"run\": \"<string>\",\n \"showSystemPrompt\": true,\n \"showUserPrompt\": true,\n \"since\": \"<string>\",\n \"turn\": \"<string>\",\n \"until\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/sessions/trace")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"nameOrKey\": \"<string>\",\n \"correlation\": \"<string>\",\n \"explain\": true,\n \"includeStream\": true,\n \"limit\": \"<string>\",\n \"message\": \"<string>\",\n \"only\": \"<string>\",\n \"raw\": true,\n \"run\": \"<string>\",\n \"showSystemPrompt\": true,\n \"showUserPrompt\": true,\n \"since\": \"<string>\",\n \"turn\": \"<string>\",\n \"until\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}sessions
Read the SQLite session trace timeline
POST
/
api
/
v1
/
sessions
/
trace
Read the SQLite session trace timeline
curl --request POST \
--url http://localhost:3000/api/v1/sessions/trace \
--header 'Content-Type: application/json' \
--data '
{
"nameOrKey": "<string>",
"correlation": "<string>",
"explain": true,
"includeStream": true,
"limit": "<string>",
"message": "<string>",
"only": "<string>",
"raw": true,
"run": "<string>",
"showSystemPrompt": true,
"showUserPrompt": true,
"since": "<string>",
"turn": "<string>",
"until": "<string>"
}
'import requests
url = "http://localhost:3000/api/v1/sessions/trace"
payload = {
"nameOrKey": "<string>",
"correlation": "<string>",
"explain": True,
"includeStream": True,
"limit": "<string>",
"message": "<string>",
"only": "<string>",
"raw": True,
"run": "<string>",
"showSystemPrompt": True,
"showUserPrompt": True,
"since": "<string>",
"turn": "<string>",
"until": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
nameOrKey: '<string>',
correlation: '<string>',
explain: true,
includeStream: true,
limit: '<string>',
message: '<string>',
only: '<string>',
raw: true,
run: '<string>',
showSystemPrompt: true,
showUserPrompt: true,
since: '<string>',
turn: '<string>',
until: '<string>'
})
};
fetch('http://localhost:3000/api/v1/sessions/trace', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/sessions/trace",
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([
'nameOrKey' => '<string>',
'correlation' => '<string>',
'explain' => true,
'includeStream' => true,
'limit' => '<string>',
'message' => '<string>',
'only' => '<string>',
'raw' => true,
'run' => '<string>',
'showSystemPrompt' => true,
'showUserPrompt' => true,
'since' => '<string>',
'turn' => '<string>',
'until' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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 := "http://localhost:3000/api/v1/sessions/trace"
payload := strings.NewReader("{\n \"nameOrKey\": \"<string>\",\n \"correlation\": \"<string>\",\n \"explain\": true,\n \"includeStream\": true,\n \"limit\": \"<string>\",\n \"message\": \"<string>\",\n \"only\": \"<string>\",\n \"raw\": true,\n \"run\": \"<string>\",\n \"showSystemPrompt\": true,\n \"showUserPrompt\": true,\n \"since\": \"<string>\",\n \"turn\": \"<string>\",\n \"until\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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("http://localhost:3000/api/v1/sessions/trace")
.header("Content-Type", "application/json")
.body("{\n \"nameOrKey\": \"<string>\",\n \"correlation\": \"<string>\",\n \"explain\": true,\n \"includeStream\": true,\n \"limit\": \"<string>\",\n \"message\": \"<string>\",\n \"only\": \"<string>\",\n \"raw\": true,\n \"run\": \"<string>\",\n \"showSystemPrompt\": true,\n \"showUserPrompt\": true,\n \"since\": \"<string>\",\n \"turn\": \"<string>\",\n \"until\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/sessions/trace")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"nameOrKey\": \"<string>\",\n \"correlation\": \"<string>\",\n \"explain\": true,\n \"includeStream\": true,\n \"limit\": \"<string>\",\n \"message\": \"<string>\",\n \"only\": \"<string>\",\n \"raw\": true,\n \"run\": \"<string>\",\n \"showSystemPrompt\": true,\n \"showUserPrompt\": true,\n \"since\": \"<string>\",\n \"turn\": \"<string>\",\n \"until\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}Body
application/json
Session name or key
Filter by payload correlation/request id
Explain likely interruption, abort, timeout, or delivery issues
Include provider stream/delta events
Show only the latest N timeline rows after filters
Filter by source message id
Only show an event group or event type, e.g. adapter/tools/delivery
Include raw payloads and request blobs
Filter by run id
Include full system prompt blob when available
Include full user prompt blob when available
Start time: ISO, epoch ms, or duration like 2h
Filter by turn id
End time: ISO, epoch ms, or duration like 30m
Response
Success — no @Returns schema declared; payload shape is loose.
The response is of type object.