MemNexus

API Reference

Complete REST API reference for MemNexus, auto-generated from the OpenAPI specification.

The MemNexus API is a REST API with 83 endpoints across 13 resource groups. All requests require authentication via API key.

Base URL

https://api.memnexus.ai

Authentication

All API requests require authentication. Pass your API key as a Bearer token in the Authorization header:

curl https://api.memnexus.ai/api/memories \
  -H "Authorization: Bearer cmk_live_xxx.yyy"

API keys follow the format cmk_live_<id>.<secret>. Create keys in the dashboard or via the API Keys endpoints.

Endpoint groups

GroupEndpointsDescription
Memories20Memory management and retrieval endpoints
Conversations7Conversation tracking and analysis endpoints
Topics9Topic detection, clustering, and management endpoints
Communities3Topic community detection and management endpoints
Facts6Fact extraction and management endpoints
Entities3Entity extraction and discovery endpoints
Patterns6Pattern detection and behavioral analysis endpoints
Behavior2Behavioral pattern tracking and state management endpoints
GraphRAG3Graph-based retrieval augmented generation endpoints
Artifacts5Artifact storage and retrieval endpoints
API Keys4API key management endpoints
Narratives8Narrative thread management endpoints
System7System health, monitoring, and configuration endpoints

Error responses

All errors follow a consistent format:

{
  "error": "Error description"
}
StatusMeaning
400Validation error — check your request body
401Authentication error — check your API key
404Resource not found
429Rate limit exceeded — wait and retry
500Internal server error

Rate limiting

The API enforces rate limits via the API Gateway. When rate limited, the response includes:

Retry-After: 60
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1706198400

OpenAPI specification

The full OpenAPI 3.0 specification is available:

  • Live endpoint: GET /api/openapi.json
  • Static file: /openapi.json (bundled with these docs)

Use this to generate clients in any language or import into tools like Postman.