Admin Dashboard
Enterprise administrators get two tools: a web dashboard (memorylayer-admin) and the cross-workspace /v1/admin API it builds on. Core-only deployments can use the separate memorylayer-explorer UI to browse memories, sessions, and the knowledge graph in a workspace.
Web Dashboard
The dashboard is a Next.js application in the memorylayer-admin directory of the enterprise repository. It is built from source; there is no dashboard image.
| Section | Pages |
|---|---|
| Overview | Dashboard |
| Data | Workspaces, Memories, Sessions, Documents, Datasets |
| Access | API Tokens |
| Observability | Audit Log, Trajectories, Entities, Jobs |
| System | Tiering & Health, Settings |
Run the Dashboard
Requires Node.js 22+.
cd memorylayer-adminnpm cinpm run buildMEMORYLAYER_URL=https://memory.example.com npm run start # http://localhost:3200Use npm run dev for development (also on port 3200). The dashboard proxies /api/ml/* to MEMORYLAYER_URL (default http://ml-aether-auth-proxy:8080), which should be your Aether auth proxy. Set MEMORYLAYER_URL before building or running.
In the dashboard’s Settings page, set the API URL to /api/ml and enter an admin-scoped API key. Keep API keys out of source files and NEXT_PUBLIC_* variables.
Admin API
The /v1/admin endpoints provide cross-workspace visibility and maintenance actions. Reads require admin:read; actions require admin:write. The examples use $MEMORYLAYER_URL for your deployment’s API endpoint.
Aggregate Statistics
curl "$MEMORYLAYER_URL/v1/admin/stats" \ -H "Authorization: Bearer $ML_API_KEY"Response:
{ "workspace_count": 12, "memory_count": 84230, "session_count": 1547, "document_count": 328, "dataset_count": 15, "token_count": 0}Counts cover every workspace in the database the server is connected to; memory_count excludes soft-deleted memories. API tokens live in Aether, so token_count is typically 0.
Resource Listings
| Endpoint | Filters |
|---|---|
GET /v1/admin/memories | workspace_id, status (active, archived, deleted) |
GET /v1/admin/sessions | workspace_id, include_expired (default false) |
GET /v1/admin/documents | workspace_id, status (pending, pending_fetch, processing, completed, failed, partial), enrichment_status (not_applicable, pending, complete) |
GET /v1/admin/datasets | workspace_id, status (pending, profiling, summarizing, completed, failed) |
GET /v1/admin/jobs | workspace_id, status (queued, running, completed, failed, cancelled) — document ingestion and dataset jobs |
GET /v1/admin/chat-threads | workspace_id, ownership, include_hidden (default true) |
GET /v1/admin/skills | workspace_id, enabled |
GET /v1/admin/mcp-servers | workspace_id, transport, enabled |
GET /v1/admin/applications | enabled (tenant-scoped) |
All listings accept limit (default 100, max 500) and offset, and return:
{ "items": [ { "...": "resource-specific fields" } ], "total": 1547, "limit": 100, "offset": 0}Detail endpoints: GET /v1/admin/documents/{document_id}, GET /v1/admin/chat-threads/{thread_id}, GET /v1/admin/skills/{skill_id}, GET /v1/admin/mcp-servers/{mcp_id}, and GET /v1/admin/applications/{app_id}. The document detail combines ingestion gap analysis (including the first missing phase), enrichment status, and every ingestion job that touched the document — useful for answering “why is this document not done?”.
# Documents that finished ingesting but have not been decomposed into factscurl "$MEMORYLAYER_URL/v1/admin/documents?status=completed&enrichment_status=pending" \ -H "Authorization: Bearer $ML_API_KEY"
# Failed jobscurl "$MEMORYLAYER_URL/v1/admin/jobs?status=failed" \ -H "Authorization: Bearer $ML_API_KEY"Page through results by incrementing offset by limit until you reach total.
Tiering and Storage
| Endpoint | Description |
|---|---|
GET /v1/admin/tiering | Tenant-wide hot/cold tiering statistics, including measured on-disk document table sizes |
POST /v1/admin/tiering/run | On-demand cross-workspace archival sweep. Body: dry_run (default true), only_enabled (default true), batch_size (default 100), max_workspaces. See Storage Tiering. |
GET /v1/admin/storage/usage | Tenant storage-usage rollup from the data connectors service (requires blobgw); force=true bypasses its cache |
Maintenance
# Re-verify documents in every workspace (omit workspace_id) or in one workspacecurl -X POST "$MEMORYLAYER_URL/v1/admin/documents/verify" \ -H "Authorization: Bearer $ML_API_KEY" \ -H "Content-Type: application/json" \ -d '{"workspace_id": "ws-production"}'Returns 202 Accepted after enqueueing a doc_verify sweep. To re-verify a single document, use POST /v1/documents/{document_id}/verify.