Base URL
The API base URL depends on your deployment mode:Local Mode
When running Basic Memory locally, the API is available at:Cloud Mode
For cloud deployments, the API is available at:API Versioning
Basic Memory uses versioned API endpoints to ensure stability:- v2 (Current): Uses external UUIDs for stable references across renames and moves
- v1 (Legacy): Uses string-based project names (deprecated)
V2 Endpoint Structure
All v2 endpoints follow this pattern:{project_id}- Project external UUID (stable identifier){resource}- The resource type (knowledge, search, etc.)
Response Format
All API responses use JSON format with consistent structure:Success Response
Error Response
HTTP Status Codes
The API uses standard HTTP status codes:| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 401 | Unauthorized |
| 404 | Not Found |
| 409 | Conflict (entity already exists) |
| 500 | Internal Server Error |
Rate Limiting
Local Mode
No rate limiting is applied when running locally.Cloud Mode
Rate limits apply based on your subscription tier:- Free tier: 100 requests per minute
- Pro tier: 1,000 requests per minute
- Enterprise: Custom limits
Content Types
The API supports multiple content types:| Content Type | Description |
|---|---|
text/markdown | Markdown files (default) |
text/plain | Plain text files |
application/pdf | PDF documents |
image/jpeg | JPEG images |
image/png | PNG images |
image/svg+xml | SVG images |
Pagination
Endpoints that return lists support pagination via query parameters:Page number (1-indexed)
Number of results per page (max 100)
Next Steps
Authentication
Learn how to authenticate API requests
Entities
CRUD operations for knowledge entities
Search
Search across your knowledge graph
Projects
Manage multiple projects