API Reference
API Reference
Complete API reference for Memokit
API Reference
This is the complete API reference for Memokit. All endpoints are RESTful and return JSON responses.
Base URL
https://api.memokit.devAuthentication
All requests require an API key in the Authorization header:
Authorization: Bearer mk_your_api_keySee Authentication for details.
API Versions
The current API version is v1. All endpoints are prefixed with /v1/.
Endpoints Overview
Memories
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/memories | Create a new memory |
POST | /v1/memories/search | Search memories semantically |
GET | /v1/memories | List memories |
GET | /v1/memories/:id | Get a specific memory |
DELETE | /v1/memories/:id | Delete a memory |
Entities
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/entities | Create a new entity |
GET | /v1/entities | List entities |
DELETE | /v1/entities/:id | Delete an entity |
Relations
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/relations | Create a new relation |
GET | /v1/relations | List relations |
DELETE | /v1/relations/:id | Delete a relation |
Common Response Codes
| Code | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Quota exceeded |
404 | Not Found |
429 | Too Many Requests - Rate limited |
500 | Internal Server Error |
Error Response Format
All errors follow this format:
{
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message"
}
}Pagination
List endpoints support pagination with these parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
page | number | 1 | Page number |
limit | number | 20 | Items per page (max 100) |
Response includes pagination info:
{
"items": [...],
"pagination": {
"page": 1,
"limit": 20,
"total": 150,
"totalPages": 8
}
}Rate Limits
See Rate Limits for details on API rate limiting.