Skip to content

Dashboard API

Authenticated REST API for the web app. Not for SDK ingest — use Ingest with your project SDK key.

Base URL: https://api.amlexia.com
Auth: Authorization: Bearer <Clerk session JWT>

Health

http
GET /health
json
{ "status": "ok", "version": "2.0.0" }

Organizations & projects

MethodPath
POST/api/organizations
GET / PATCH / DELETE/api/organizations
GET / POST/api/projects
POST/api/projects/:id/regenerate-key
DELETE/api/projects/:id
GET/api/projects/:id/first-event

Analytics

Query params: projectId (required), range (1h | 24h | 7d | 30d), optional environment (production | staging | development).

MethodPath
GET/api/events/summary
GET/api/events/latency
GET/api/events/errors
GET/api/events/cost
GET/api/events/compare?envA=&envB=
GET/api/usage
GET/api/ingest/stats
GET/api/ops/metrics

Saved views

Per-user named presets (range, environment, compare mode).

MethodPath
GET/api/saved-views?projectId=
POST/api/saved-views?projectId=
DELETE/api/saved-views/:id?projectId=

Team (RBAC)

MethodPath
GET/api/team/members
PATCH/api/team/members/:id
DELETE/api/team/members/:id

Observability

MethodPath
GET/api/traces, /api/traces/:traceId
GET/api/providers/health
GET/api/sessions
GET / PATCH/api/anomalies
GET / PATCH/api/insights
POST/api/ai/summary
GET/api/infrastructure
GET/api/live/stream (SSE)
GET / POST/api/captures
GET / PATCH/api/settings/project
DELETE/api/gdpr/sessions/:sessionId

Alerts

MethodPath
GET / POST/api/alerts
GET/api/alerts/history?projectId=
PATCH / DELETE/api/alerts/:id

Channels: email, slack, webhook (URL in slack_webhook_url field).

Clerk webhook (platform)

MethodPath
POST/webhooks/clerk

Local development

When running workers locally, API is typically http://localhost:8787.