Skip to content

API Reference

POST /api/v1/memory

Add a new encrypted memory to the store.

Headers:

  • X-Memo-API-Key: Your YoMemoAI API key (required)
  • Content-Type: application/json

Request Body:

ParameterTypeDescription
handlestringRequired. A unique, human-readable identifier for the memory (e.g., ‘passwords’, ‘work’, ‘project-alpha’). Cannot contain spaces.
ciphertextstringRequired. Base64-encoded encrypted content (encrypted client-side).
descriptionstringOptional. A brief description of the memory.
metadataobjectOptional. Key-value pairs for additional metadata.

Example:

Terminal window
curl -X POST "https://api.yomemo.ai/api/v1/memory" \
-H "X-Memo-API-Key: your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"handle": "passwords",
"ciphertext": "base64_encoded_encrypted_content",
"description": "Coffee machine credentials",
"metadata": {
"category": "credentials"
}
}'

GET /api/v1/memory

Retrieve memories with optional filtering and pagination.

Headers:

  • X-Memo-API-Key: Your YoMemoAI API key (required)

Query Parameters:

ParameterTypeDescription
handlestringOptional. Filter memories by handle.
page_sizeintOptional. Number of results per page.
cursorstringOptional. Pagination cursor from previous response.
start_timeint64Optional. Unix timestamp for start time filter.
end_timeint64Optional. Unix timestamp for end time filter.
filtersstringOptional. JSON-encoded metadata filters.
ascendingboolOptional. Sort order (true = ascending).

Example:

Terminal window
curl -X GET "https://api.yomemo.ai/api/v1/memory?handle=passwords&page_size=10" \
-H "X-Memo-API-Key: your_api_key_here"