Skip to content
Streamkap
Esc
↑↓navigate↵open⌘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 | null
Show properties
Any of:
integer
integer
null
null
statusstringrequired
response_size_bytesinteger | null
Show properties
Any of:
integer
integer
null
null
response_truncatedboolean | null
Show properties
Any of:
boolean
boolean
null
null
error_messagestring | null
Show properties
Any of:
string
string
null
null
error_codestring | null
Show properties
Any of:
string
string
null
null
denied_by_profilestring | null
Show properties
Any of:
string
string
null
null
parametersany
call_sequenceinteger | null
Show properties
Any of:
integer
integer
null
null
topicstring | null
Show properties
Any of:
string
string
null
null
agent_idstring | null
Show properties
Any of:
string
string
null
null
client_idstring | null
Show properties
Any of:
string
string
null
null
project_key_idstring | null
Show properties
Any of:
string
string
null
null
tool_profilestring | null
Show properties
Any of:
string
string
null
null
access_modestring | null
Show properties
Any of:
string
string
null
null
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"
  }
]