Skip to content

Sessions API

GET /api/v1/project/{project_id}/otel/sessions

Query sessions with pagination and filters.

ParameterTypeDescription
pagenumberPage number (default: 1)
limitnumberItems per page (default: 50)
order_bystringSort field (e.g., start_time:desc)
user_idstringFilter by user ID
environmentstring or arrayFilter by environment
from_timestampstringFilter from timestamp (ISO 8601)
to_timestampstringFilter to timestamp (ISO 8601)
filtersJSONAdvanced filters (see below)
{
"data": [
{
"session_id": "session-789",
"user_id": "user-123",
"environment": "development",
"start_time": "2025-01-26T10:12:34Z",
"end_time": "2025-01-26T10:15:02Z",
"trace_count": 3,
"total_tokens": 980,
"total_cost": 0.048
}
],
"meta": {
"page": 1,
"limit": 50,
"total_items": 42,
"total_pages": 1
}
}
GET /api/v1/project/{project_id}/otel/sessions/{session_id}

Returns the session summary plus a list of traces in the session.

GET /api/v1/project/{project_id}/otel/sessions/{session_id}/messages

Get normalized messages (SideML format) across the session.

DELETE /api/v1/project/{project_id}/otel/sessions

Request body:

{ "session_ids": ["session-123", "session-456"] }
GET /api/v1/project/{project_id}/otel/sessions/filter-options

Pass a JSON array in the filters query param:

[{"key": "user_id", "op": "eq", "value": "user-123"}]