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/v1Authentication
All API requests require authentication via Bearer token:
curl -H "Authorization: Bearer mk_your_api_key" \
https://api.memaxlabs.com/v1/memoriesSee 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
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/memories | Create a memory |
GET | /v1/memories | List memories |
GET | /v1/memories/:id | Get a memory |
PATCH | /v1/memories/:id | Update a memory |
DELETE | /v1/memories/:id | Delete a memory |
POST | /v1/recall | Semantic search |
GET | /v1/hubs | List hubs |
POST | /v1/hubs | Create 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
| Plan | Requests/minute |
|---|---|
| Free | 60 |
| Pro | 300 |
| Team | 1000 |
Rate limit headers are included in every response:
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 298
X-RateLimit-Reset: 1704067200For TypeScript projects, use the memax-sdk client library instead of raw HTTP calls. It handles authentication, pagination, and error handling.