Skip to main content

Base URL

https://api.memcontext.in
All endpoints are prefixed with /api/.

Authentication

Every request must include an API key in the X-API-Key header:
curl https://api.memcontext.in/api/memories \
  -H "X-API-Key: mc_your_key"
API keys are created from the MemContext dashboard. See Authentication for details.

Endpoints

MethodPathDescription
POST/api/memoriesSave a memory
GET/api/memoriesList memories
GET/api/memories/searchSearch memories
GET/api/memories/profileGet user profile context
GET/api/memories/{id}Get a memory by ID
PATCH/api/memories/{id}Update a memory
DELETE/api/memories/{id}Delete a memory
POST/api/memories/{id}/forgetForget a memory (soft delete)
GET/api/memories/{id}/historyGet memory version history
POST/api/memories/{id}/feedbackSubmit feedback

Response format

All successful responses return JSON. Error responses follow a consistent shape:
{
  "error": "Human-readable error message",
  "code": "HTTP_404",
  "requestId": "abc123xyz456"
}
Every response includes an X-Request-Id header for tracing.

Rate limits

Rate-limited endpoints return the following headers:
HeaderDescription
X-RateLimit-LimitMaximum requests in the current window.
X-RateLimit-RemainingRequests remaining in the current window.
X-RateLimit-ResetUnix timestamp when the window resets.
See Authentication for per-endpoint limits.

Request limits

  • Maximum request body size: 50 KB.
  • Memory content maximum length: 10,000 characters.
  • Search query maximum length: 1,000 characters.