Health Check
GET /health — Verify API connectivity
Endpoints
MemLib exposes two health endpoints:
Public Health Check
GET /v1/healthPermission: None (public)
Returns a simple "OK" string. No API key required. Use this for uptime monitoring and load balancer health checks.
curl "https://mem.anishroy.com/api/v1/health"Response:
OKMemory Service Health Check
GET /v1/memory/healthPermission: Read
Tests the full pipeline — API auth, database connection, and service readiness. Requires a valid API key.
curl "https://mem.anishroy.com/api/v1/memory/health" \
-H "Authorization: Bearer sk_your_api_key"Response:
{
"status": "ok",
"db": "connected"
}Use the public endpoint for infrastructure monitoring and the memory service endpoint for verifying your API key and database connection are working.