Skip to main content

REST API Reference

Base API URL:
http://127.0.0.1:3000

Authentication

Current /v1 routes accept either:
  • Authorization: Bearer <dashboard-jwt>
  • x-api-key: <api-key>
For local development, the fastest path is:
POST /v1/dashboard/auth/login
Older examples that use /api/v1/*, /v1/memories, /v1/search, or /health are from an older product model and should not be used for current integrations.

Route groups

Public login

MethodEndpointPurpose
POST/v1/dashboard/auth/loginGet dashboard JWT token

Memory runtime

MethodEndpointPurpose
POST/v1/users/:user_id/streams/:stream_id/eventsIngest one event
POST/v1/users/:user_id/streams/:stream_id/events/batchIngest a batch of events
POST/v1/users/:user_id/streams/:stream_id/retrieveHybrid retrieval
POST/v1/memory/contextRender retrieved memory into compact text or XML context
POST/v1/users/:user_id/graph/edgesAdd graph edge
GET/v1/status/pendingPending event backlog

Memory maintenance

MethodEndpointPurpose
DELETE/v1/users/:user_id/memories/:idHard-delete one memory unit
POST/v1/users/:user_id/memories/semantic/previewPreview semantic update or forgetting plan
POST/v1/users/:user_id/memories/semantic/executeExecute a reviewed semantic plan

Tasks and goals

MethodEndpointPurpose
GET/v1/users/:user_id/streams/:stream_id/tasks/treeTask tree for one stream
GET/v1/users/:user_id/tasks/treeAll task trees for one user
GET/v1/users/:user_id/tasks/readyReady-to-run tasks
PUT/v1/users/:user_id/tasks/:task_id/statusUpdate task status

Organization knowledge

MethodEndpointPurpose
GET/v1/organizations/:org_id/knowledgeList organization knowledge
GET/v1/organizations/:org_id/knowledge/:idFetch one knowledge record
GET/v1/organizations/:org_id/knowledge/metricsOrganization knowledge metrics

Cluster operations

MethodEndpointPurpose
POST/v1/cluster/initializeManually initialize cluster
POST/v1/cluster/joinJoin node to cluster
DELETE/v1/cluster/nodes/:node_idRemove node from cluster

Integration notes

  • stream_id is a UUID path parameter in the current model.
  • For single-node default deployments, Raft auto-bootstrap is enabled by default.
  • memory_type values are serialized as factual and procedural.
  • Treat crates/memorose-server/src/main.rs and crates/memorose-server/src/types.rs as the authoritative route and payload definitions.
  • Treat crates/memorose-common/src/config.rs as the authoritative runtime config schema.