API

API

REST API surface for MemHQ — memory operations, dashboard, connectors, webhooks.

API

MemHQ exposes a versioned REST API at https://api.memhq.ai. All requests are authenticated; all responses are JSON; all errors follow a single envelope shape.

Endpoints at a glance

  • Memoryadd, search, ask. The three primitives that power agent memory. Authenticated via project API key.
  • Dashboard — Project management, usage, billing, and observability endpoints used by the web app. Authenticated via Clerk JWT.
  • Connectors — Inbound webhook ingestion endpoint for external systems.
  • Webhooks — Where MemHQ receives signed events from Clerk and Stripe.

For the full interactive reference with try-it-now request runners, see API Reference.

Auth at a glance

SurfaceHeaderFormat
Memory + ConnectorsAuthorization: Bearer mem_…64-char project key
DashboardAuthorization: Bearer <Clerk JWT>Issued by the dashboard
Webhooks (Clerk)svix-id, svix-timestamp, svix-signatureVerified server-side
Webhooks (Stripe)Stripe-SignatureVerified server-side

Conventions

  • Base URL: https://api.memhq.ai
  • Versioning: every path is prefixed with /v1/
  • Errors: { "error": "human message", "code": "MACHINE_CODE", "correlationId": "…" }
  • Pagination: list endpoints accept ?cursor=…&limit=… and return next_cursor when more pages exist
  • Rate limits: surfaced via X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After