curl --request GET \
--url https://api.streamkap.com/agentic/observability/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.streamkap.com/agentic/observability/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.streamkap.com/agentic/observability/sessions', 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.streamkap.com/agentic/observability/sessions",
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.streamkap.com/agentic/observability/sessions"
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.streamkap.com/agentic/observability/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.streamkap.com/agentic/observability/sessions")
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{
"items": [
{
"session_id": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"call_count": 123,
"error_count": 123,
"agent_label": "<string>",
"entity_kind": "streamkap",
"p95_ms": 123,
"agent_id": "<string>"
}
],
"next_cursor": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get Observability Sessions
Cursor-paginated sessions list.
Filter precedence:
agent_id(Streamkap or external:pk:cid synthetic form)project_key_id+client_id(external pseudo-agent)- No entity filter - all-tenant-activity pseudo-row.
The FE never sends both flavours - but if it does, agent_id wins.
kind and entity_kind are reserved-slot dispatch params: today only
kind=tool_call against entity_kind=streamkap|external returns data.
Other valid combinations return an empty page until their backing tables /
emitters land. Unknown values raise 400.
curl --request GET \
--url https://api.streamkap.com/agentic/observability/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.streamkap.com/agentic/observability/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.streamkap.com/agentic/observability/sessions', 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.streamkap.com/agentic/observability/sessions",
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.streamkap.com/agentic/observability/sessions"
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.streamkap.com/agentic/observability/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.streamkap.com/agentic/observability/sessions")
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{
"items": [
{
"session_id": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"call_count": 123,
"error_count": 123,
"agent_label": "<string>",
"entity_kind": "streamkap",
"p95_ms": 123,
"agent_id": "<string>"
}
],
"next_cursor": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Streamkap agent id (Mongo ObjectId or external:pk:cid)
External pseudo-agent: project_key_id
External pseudo-agent: client_id
Time range start (ISO 8601)
Time range end (ISO 8601)
Filter by tool name
success | error | denied
Pagination cursor - last page's next_cursor
Max items
1 <= x <= 200Row kind: tool_call (default) | log | llm_call | transcript_event | kb_ingestion
Entity scope: streamkap | external | kb
Response
Successful Response
/agentic/observability/sessions response envelope.
next_cursor is the started_at of the last row in the page, or
None when fewer than limit rows were returned (signalling end
of stream to the FE).
Was this page helpful?