memaxdocs
REST API

REST API

Memax REST API reference. All endpoints, request/response formats, and authentication.

The Memax API is a REST API served at https://api.memaxlabs.com. All endpoints are under the /v1/ prefix.

Base URL

https://api.memaxlabs.com/v1

Authentication

All API requests require authentication via Bearer token:

curl -H "Authorization: Bearer mk_your_api_key" \
  https://api.memaxlabs.com/v1/memories

See Authentication for details on obtaining and managing API keys.

Response format

All responses follow a standard envelope:

{
  "data": { ... }
}

Errors return:

{
  "error": {
    "code": "not_found",
    "message": "Memory not found"
  }
}

Endpoints overview

MethodEndpointDescription
POST/v1/memoriesCreate a memory
GET/v1/memoriesList memories
GET/v1/memories/:idGet a memory
PATCH/v1/memories/:idUpdate a memory
DELETE/v1/memories/:idDelete a memory
POST/v1/recallSemantic search
GET/v1/hubsList hubs
POST/v1/hubsCreate a hub

Pagination

List endpoints support cursor-based pagination:

GET /v1/memories?limit=20&cursor=eyJpZCI6Im1lbV8...

Response includes pagination info:

{
  "data": {
    "memories": [...],
    "next_cursor": "eyJpZCI6Im1lbV8...",
    "has_more": true
  }
}

Rate limits

PlanRequests/minute
Free60
Pro300
Team1000

Rate limit headers are included in every response:

X-RateLimit-Limit: 300
X-RateLimit-Remaining: 298
X-RateLimit-Reset: 1704067200

For TypeScript projects, use the memax-sdk client library instead of raw HTTP calls. It handles authentication, pagination, and error handling.