Skip to content
Streamkap
Esc
↑↓navigate↵open⌘Jpreview

Get Observability Logs Histogram

Level-stacked log histogram for one agent or knowledge base.

Same scope rules as /logs (404 for an id outside the caller’s tenant and service, 503 when log storage is unavailable). The histogram always covers all four levels, regardless of any level filter, so a client can show the full distribution before a filter floor is picked.

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

Agent or knowledge base id

fromstring

Time range start (ISO 8601)

tostring

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' \
  -H 'Accept: application/json'
Response
{
  "buckets": [
    {
      "bucket_start": "2019-08-24T14:15:22Z",
      "error": 0,
      "warn": 0,
      "info": 0,
      "debug": 0,
      "total": 0
    }
  ],
  "total": 0
}