Use this file to discover all available pages before exploring further.
Sessions group related traces together, making it easier to monitor and debug complex workflows. Track entire user interactions or multi-step processes as a single unit.
There are two ways to create sessions: via span() / span_context() with session options (recommended), or via telemetry metadata on individual prompt calls.
The Sessions page lists each session with columns for ID, name, user, duration, cost, tokens, and trace count. Search by session ID or name, filter by date range and user, and sort by any column.Access sessions under the Sessions tab in the Dashboard or at http://localhost:3000 locally.
You can list sessions and retrieve a session’s traces programmatically using the CLI or REST API. Both the local dev server and the AgentMark Cloud gateway expose /v1/sessions and /v1/sessions/{sessionId}/traces.
CLI
REST API (Cloud)
REST API (local)
# List sessions from the local dev servernpx agentmark api sessions list --limit 10# List traces in a specific sessionnpx agentmark api sessions traces <sessionId># Target AgentMark Cloudnpx agentmark api sessions list --remote --limit 10
# List sessionscurl "https://api.agentmark.co/v1/sessions?limit=10" \ -H "Authorization: Bearer am_live_abc123" \ -H "X-Agentmark-App-Id: app_abc123"# List the traces belonging to a sessioncurl "https://api.agentmark.co/v1/sessions/session-1712764245/traces" \ -H "Authorization: Bearer am_live_abc123" \ -H "X-Agentmark-App-Id: app_abc123"
# No auth required locallycurl "http://localhost:9418/v1/sessions?limit=10"curl "http://localhost:9418/v1/sessions/session-1712764245/traces"
Both endpoints support pagination with limit and offset. The list endpoint also supports filtering by name and userId.See the Sessions API reference for full request and response details.