๐ Nexus API Reference
Base URL: https://api.nexus.studio.dripper.live
All API endpoints return JSON. Use Authorization: Bearer <token> for authentication.
Admin = requires the NEXUS_ADMIN_TOKEN
Agent = requires an agent auth token (or admin token)
Public = no auth required
Admin token: 1396cd02de5b3e6d60c8fb1e3ed846676f6dff15f49b0437ddc697c5ef8b60ef
๐ค Agents
Agent management and heartbeats. All agent routes are under /api/agents.
GET/api/agentsAdmin
List all registered agents
POST/api/agents/registerPublic
Register a new agent
Body: { "slug": "my-agent", "name": "My Agent", "scope": "studio" }
GET/api/agents/:slug/profilePublic
Get an agent's profile (how it's configured in Nexus)
POST/api/agents/:slug/heartbeatAgent
Send a heartbeat ping. The agent token used in the Authorization header must match the agent's slug.
PUT/api/agents/:slug/tokenAdmin
Create or rotate an agent's auth token. Returns the new token (this is the only time it's shown).
DELETE/api/agents/:slug/token/:tokenHashAdmin
Revoke an agent token by its SHA-256 hash
๐ Profiles
Inference profiles (model routing configs). Under /api/profiles.
GET/api/profiles
List all inference profiles
GET/api/profiles/:name
Get a single profile by name (e.g. Prod-Reliable, Dev Fast & Cheap)
POST/api/profilesAdmin
Create a new profile
Body: { "name": "my-profile", "model": "openai/gpt-4o", "fallbacks": [], "vision": false, "gateway": null, "description": "", "parameters": {} }
PUT/api/profiles/:nameAdmin
Update a profile (partial โ only include fields to change)
DELETE/api/profiles/:nameAdmin
Delete a profile
๐ Vault / Secrets
Encrypted secrets storage. Under /api/vault.
GET/api/vault/secrets?scope=:scopeAgent
List secrets accessible to the authenticated agent. Pass ?scope= to filter.
POST/api/vault/secretsAdmin
Create a new secret
Body: { "scope": "infrastructure", "name": "my-key", "value": "supersecret", "allowed_profiles": [] }
Empty allowed_profiles = accessible by all agents
GET/api/vault/secrets/:idAgent
Get a single secret by ID. Decrypts and returns the plaintext value.
Response: { "id", "scope", "name", "value" (decrypted), "allowed_profiles" }
DELETE/api/vault/secrets/:idAdmin
Delete a secret
๐ Knowledge
Structured knowledge base. Under /api/knowledge.
GET/api/knowledge?kind=server,project&query=ollama&format=yaml
Query the knowledge base. Parameters are all optional:
kind โ filter by type: server, domain, infrastructure, project, agent (comma-separated)
query โ text search across titles and content
format โ yaml for raw YAML, default is JSON
GET/api/knowledge/:kind
Shorthand โ filter to a single kind. Example: /api/knowledge/server
๐ฆ Model Registry
LLM model metadata. Under /api/registry.
GET/api/registry/modelsAgent
List all registered models
GET/api/registry/models/:slugAgent
Get a model by slug
POST/api/registry/modelsAgent
Register a new model entry
DELETE/api/registry/models/:slug/:modelIdAgent
Delete a model entry
๐ Assignments
Agent-to-profile mappings. Under /api/assignments.
GET/api/assignmentsAdmin
List all assignments
PUT/api/assignments/:slugAdmin
Create or update an assignment
Body: { "profile_name": "Prod-Reliable" }
DELETE/api/assignments/:slugAdmin
Remove an assignment
๐ง Memories
Agent memory persistence. Under /api/memories.
GET/api/memories/list?agent=:slug&date=YYYY-MM-DD
List memory files for an agent, optionally filtered by date
POST/api/memories/collect
Store a memory entry
Body: { "agent": "addy", "content": "Remember this...", "date": "2026-07-01" }
GET/api/memories/download/:agent/:date?format=markdown
Download a full day's memory file for an agent
๐ก๏ธ Admin
GET/admin/statusAdmin
System status overview
GET/admin/audit-logAdmin
Audit log (access tracking from vault and other services)
๐ Auth (UI specific)
These are on the main nexus.studio.dripper.live domain, not api.nexus:
GET/api/auth/me
Get current user session info. Returns { userId, name, email, image } or { error: "unauthorized" }.
GET/api/auth/login
Redirect to Inflo SSO login
GET/api/auth/logout
Logout (clears session, redirects to Inflo)
GET/api/auth/nexus-gate
Nexus login gate page
๐ก UI Endpoints (agent-accessible via Bearer token)
These are HTML endpoints but return JSON data when accessed with an Accept: application/json header or Bearer token:
GET/api/secrets?profile=:nameAgent
List all secrets (unrestricted + matching profile filter). Uses the admin token.
Example: curl -H 'Authorization: Bearer $ADMIN_TOKEN' nexus.studio.dripper.live/api/secrets?profile=Prod-Reliable
GET/api/memories/listAgent
List memory files. Accepts ?agent= and ?date= filters.
POST/api/memories/collect
Store a memory. Body: { agent, content, date }
Nexus API โ Last updated 2026-07-01 ยท Port 4260 ยท https://api.nexus.studio.dripper.live