Skip to content
Streamkap
Esc
navigateopen⌘Jpreview

Get Observability Session Spans

All spans within one session, ordered by (timestamp, call_sequence).

Tenant + service scoping happens via the WHERE clause - there’s no separate pre-check because a session_id from another tenant or sibling service simply returns 0 rows (empty list), which the FE treats the same as “session not found / expired”. No leak.

GET/agentic/observability/sessions/{session_id}
Authorization
AuthorizationBearer token · headerrequired
Path parameters
session_idstringrequired
Responses
200

Successful Response

Array of ObservabilitySpan
request_idstringrequired
tool_namestringrequired
started_atstring<date-time>required
duration_msinteger | any
Show properties
Any of:
integer
integer
any
any
statusstringrequired
response_size_bytesinteger | any
Show properties
Any of:
integer
integer
any
any
response_truncatedboolean | any
Show properties
Any of:
boolean
boolean
any
any
error_messagestring | any
Show properties
Any of:
string
string
any
any
error_codestring | any
Show properties
Any of:
string
string
any
any
denied_by_profilestring | any
Show properties
Any of:
string
string
any
any
parametersany
call_sequenceinteger | any
Show properties
Any of:
integer
integer
any
any
topicstring | any
Show properties
Any of:
string
string
any
any
agent_idstring | any
Show properties
Any of:
string
string
any
any
client_idstring | any
Show properties
Any of:
string
string
any
any
project_key_idstring | any
Show properties
Any of:
string
string
any
any
tool_profilestring | any
Show properties
Any of:
string
string
any
any
access_modestring | any
Show properties
Any of:
string
string
any
any
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/sessions/string" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
[
  {
    "request_id": "string",
    "tool_name": "string",
    "started_at": "2019-08-24T14:15:22Z",
    "duration_ms": 0,
    "status": "string",
    "response_size_bytes": 0,
    "response_truncated": true,
    "error_message": "string",
    "error_code": "string",
    "denied_by_profile": "string",
    "parameters": null,
    "call_sequence": 0,
    "topic": "string",
    "agent_id": "string",
    "client_id": "string",
    "project_key_id": "string",
    "tool_profile": "string",
    "access_mode": "string"
  }
]