curl --request GET \
--url https://api.streamkap.com/agentic/observability/logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.streamkap.com/agentic/observability/logs"
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/logs', 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/logs",
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/logs"
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/logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.streamkap.com/agentic/observability/logs")
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{
"lines": [
{
"timestamp": "<string>",
"level": "<string>",
"message": "<string>"
}
],
"job_id_prefix": "<string>",
"scope": "agent"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get Observability Logs
Per-job log lines for one agent or KB.
Replaces the namespace-scoped kubectl tail with a per-job_name
ClickHouse query. agent_id resolves to the prefix
agent_<id>_ or kb_<id>_ via the doc’s job_type; the
prefix LIKE catches every redeploy version of the entity so log
history survives re-deploys.
Returns 404 when the id doesn’t belong to this tenant + service (or
the doc’s job_type isn’t agent / KB). Returns 503 with a
structured kind when the flink_logs table is missing or
a column has drifted.
curl --request GET \
--url https://api.streamkap.com/agentic/observability/logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.streamkap.com/agentic/observability/logs"
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/logs', 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/logs",
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/logs"
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/logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.streamkap.com/agentic/observability/logs")
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{
"lines": [
{
"timestamp": "<string>",
"level": "<string>",
"message": "<string>"
}
],
"job_id_prefix": "<string>",
"scope": "agent"
}{
"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
Agent or knowledge base id (Mongo ObjectId)
Time range start (ISO 8601)
Time range end (ISO 8601)
Floor level — DEBUG | INFO | WARN | ERROR (used when levels is absent)
Explicit comma-separated level set (e.g. 'WARN,ERROR'). Overrides the level floor when present.
Substring filter on the log column
Max lines per call
1 <= x <= 2000Live-tail cursor — only rows newer than this ISO 8601 ts
Response
Successful Response
/agentic/observability/logs response envelope.
scope always "agent" on this endpoint — per-job filtering
is real (the job_id prefix LIKE catches only this entity's
history). The kubectl-tail path's "namespace" value disappears
here. job_id_prefix is echoed back so the FE can render
"N versions" hints when a redeployed agent's history is mixed in.
Was this page helpful?