Skip to content
Streamkap
Esc
navigateopen⌘Jpreview

Get Observability Logs Histogram

Level-stacked log histogram for one agent or KB.

Same scope rules as :func:get_observability_logs (404 on cross-scope id, 503 when the table isn’t deployed). The histogram surfaces all four levels regardless of the line viewer’s current level filter — the user is meant to see the full level distribution so they can pick a filter floor.

GET/agentic/observability/logs/histogram
Authorization
AuthorizationBearer token · headerrequired
Query parameters
agent_idstringrequired

Agent or knowledge base id

fromstring | any

Time range start (ISO 8601)

tostring | any

Time range end (ISO 8601)

bucketsinteger
min 1 · max 200 · default: 30
Responses
200

Successful Response

bucketsObservabilityLogHistogramBucket[]required
Show properties
Array of ObservabilityLogHistogramBucket
bucket_startstring<date-time>required
errorinteger
default: 0
warninteger
default: 0
infointeger
default: 0
debuginteger
default: 0
totalintegerrequired
totalintegerrequired
422

Validation Error

detailValidationError[]
Show properties
Array of ValidationError
locstring | integer[]required
Show properties
Array of string | integer
Any of:
string
string
integer
integer
msgstringrequired
typestringrequired
inputany
ctxobject
Request
curl -X GET "https://api.streamkap.com/agentic/observability/logs/histogram?agent_id=string" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "buckets": [
    {
      "bucket_start": "2019-08-24T14:15:22Z",
      "error": 0,
      "warn": 0,
      "info": 0,
      "debug": 0,
      "total": 0
    }
  ],
  "total": 0
}