Skip to content

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.

SectionPages
OverviewDashboard
DataWorkspaces, Memories, Sessions, Documents, Datasets
AccessAPI Tokens
ObservabilityAudit Log, Trajectories, Entities, Jobs
SystemTiering & Health, Settings

Run the Dashboard

Requires Node.js 22+.

Terminal window
cd memorylayer-admin
npm ci
npm run build
MEMORYLAYER_URL=https://memory.example.com npm run start # http://localhost:3200

Use 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

Terminal window
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

EndpointFilters
GET /v1/admin/memoriesworkspace_id, status (active, archived, deleted)
GET /v1/admin/sessionsworkspace_id, include_expired (default false)
GET /v1/admin/documentsworkspace_id, status (pending, pending_fetch, processing, completed, failed, partial), enrichment_status (not_applicable, pending, complete)
GET /v1/admin/datasetsworkspace_id, status (pending, profiling, summarizing, completed, failed)
GET /v1/admin/jobsworkspace_id, status (queued, running, completed, failed, cancelled) — document ingestion and dataset jobs
GET /v1/admin/chat-threadsworkspace_id, ownership, include_hidden (default true)
GET /v1/admin/skillsworkspace_id, enabled
GET /v1/admin/mcp-serversworkspace_id, transport, enabled
GET /v1/admin/applicationsenabled (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?”.

Terminal window
# Documents that finished ingesting but have not been decomposed into facts
curl "$MEMORYLAYER_URL/v1/admin/documents?status=completed&enrichment_status=pending" \
-H "Authorization: Bearer $ML_API_KEY"
# Failed jobs
curl "$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

EndpointDescription
GET /v1/admin/tieringTenant-wide hot/cold tiering statistics, including measured on-disk document table sizes
POST /v1/admin/tiering/runOn-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/usageTenant storage-usage rollup from the data connectors service (requires blobgw); force=true bypasses its cache

Maintenance

Terminal window
# Re-verify documents in every workspace (omit workspace_id) or in one workspace
curl -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.