Dashboard API
The dashboard is a client of a JSON API under /api. You can call it with the same access token the dashboard uses.
Authentication
Section titled “Authentication”Send a QualGent (Supabase) access token as Authorization: Bearer <jwt>. The server resolves the organizations you
belong to; every project-scoped route returns 404 for projects outside them. Every write is recorded in the audit
log.
Conventions
Section titled “Conventions”- List routes take
limitandcursor. - Analytics routes take
from,to(ISO 8601) andenv(production,staging,qa), defaulting to the last 7 days andproduction. - Bodies are validated; invalid input returns
400with the failing field.
Routes
Section titled “Routes”| Route | Returns |
|---|---|
GET /api/me |
the user and their organizations |
GET /api/orgs/:orgId/projects · POST |
projects with quick stats (sessions 24 h, crash-free 7 d, devices) |
GET · PATCH /api/projects/:id |
project: name, package name, bundle id, QualGent build, retention days |
GET /api/projects/:id/keys · POST |
API keys (prefix only); POST returns { key, public_key } once |
DELETE /api/keys/:keyId |
revokes a key |
GET · PUT /api/projects/:id/config?env= |
remote config, validated |
GET /api/projects/:id/overview |
sessions, users, devices, crash-free %, error rate, median session length, top screens, top issues, series per day |
GET /api/projects/:id/sessions |
filters device_id, distinct_id, app_version, has_replay, crashed, screen, q |
GET /api/sessions/:sid |
session, device, person and decoded signals |
GET /api/sessions/:sid/replay |
replay frames |
GET /api/sessions/:sid/player |
the replay player as HTML (embed in a sandboxed iframe) |
GET /api/projects/:id/events |
recent events; filters kind, name, screen, distinct_id |
POST /api/projects/:id/insights/trends |
{ series: [{kind, name}], interval, breakdown?, math } |
POST /api/projects/:id/insights/funnel |
{ steps: [{kind, name}], window_minutes, breakdown? } |
POST /api/projects/:id/insights/retention |
{ start: {kind, name}, return: {kind, name}, period, periods } |
POST /api/projects/:id/insights/paths |
{ start_screen?, depth } |
GET /api/projects/:id/screens |
per-screen analytics |
GET /api/projects/:id/issues · GET · PATCH /api/issues/:id |
issues; PATCH sets status |
GET /api/projects/:id/performance |
network endpoints, launch, frames, hangs per version |
GET /api/projects/:id/devices · /devices/:deviceId |
device inventory, version history, sessions |
GET /api/projects/:id/users · /users/:distinctId |
persons, their devices and sessions |
GET /api/projects/:id/releases |
app versions and SDK version distribution |
GET /api/orgs/:orgId/audit |
the organization’s audit log |
Example
Section titled “Example”curl -s https://quameleon.qualgent.ai/api/projects/$PROJECT/insights/trends \ -H "authorization: Bearer $TOKEN" -H "content-type: application/json" \ -d '{"series":[{"kind":"event","name":"order.placed"}],"interval":"day","math":"unique_users","breakdown":"platform"}'