Sessions
Session analytics (DAU, totals, avg / median duration) and a raw recent-sessions list.
Both endpoints aggregate server-side. DAU is always a 24-hour window regardless of the analytics period.
Source: apps/api/src/routes/admin/sessions.ts.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /admin/projects/:projectId/sessions | Aggregate analytics for the period. |
| GET | /admin/projects/:projectId/sessions/list | Paginated raw sessions, newest first. |
GET /admin/projects/:projectId/sessions
Query
| Param | Default | Allowed values |
|---|---|---|
period | 7d | 24h, 7d, 30d, 90d |
Response 200
Errors
400 INVALID_PERIOD.500 FETCH_FAILED.
Try it:
GET
developer auth/admin/projects/%7B%7BprojectId%7D%7D/sessionscurl -X GET 'https://api.amba.dev/admin/projects/%7B%7BprojectId%7D%7D/sessions'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /admin/projects/:projectId/sessions/list
Query
| Param | Default |
|---|---|
limit | 50 |
offset | 0 |
Response 200
Try it:
GET
developer auth/admin/projects/%7B%7BprojectId%7D%7D/sessions/listcurl -X GET 'https://api.amba.dev/admin/projects/%7B%7BprojectId%7D%7D/sessions/list'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: