Getsessions
Session analytics list for the last 7 days. The server currently derives the start window internally and supports app-layer status filtering.
Success data: { "data": [...], "meta": { "total", "page", "pageSize", "hasMore" } }.
Headers
Authorization
Optional. Bearer JWT, Virtual Key, or PAT. Server also accepts Cookie alephant_token; not modeled as a header here.
X-Workspace-Id
Optional in the spec; required for authenticated analytics. Omit for unauthenticated GET /v1/analytics/health.
Query parameters
page
1-based page index (default 1).
pageSize
Page size (default 20, max 100).
status
Optional filter. One of active, completed, intercepted.
agent
Optional agent id filter.
search
Optional search string.
sort
Optional sort key (cost, duration, steps, efficiency).
order
Optional sort order (asc or desc).
Response
code
message
data