Memory Management
This section details how to interact with user memory blobs using the Memoram API. Remember to include the required Authorization: Bearer YOUR_DEVELOPER_JWT_TOKEN
header and the correct user_id
query parameter where necessary.
Memory Blob Endpoints
Retrieve Memory Blobs
Retrieve a list of memory blobs for a specific user, with optional filtering and pagination.
Query parameters:
user_id
(string, required): The unique ID of the user whose memories are being requested.tags
(string, optional): Comma-separated list of tag names to filter by.searchQuery
(string, optional): Search term to filter memories (searches title, summary, content).importance
(number, optional): Minimum importance score (0.0-1.0) to filter by.limit
(integer, optional): Maximum number of results per page (default: 10).cursor
(string, optional): Pagination cursor from a previous response.
Example Request:
Example Response (200 OK
):
Retrieve Single Memory Blob
Retrieve a specific memory blob by its ID.
Path parameters:
blobId
(string, required): The unique ID of the memory blob.
Query parameters:
user_id
(string, required): The unique ID of the user who owns the memory blob.
Example Request:
Example Response (200 OK
): A single MemoryBlob object (see schema above, content needs decryption).
Create Memory Blob
Create a new memory blob for a user. You must have obtained the user’s user_id
and memoryKey
via an approved access request.
Request body: (application/json
)
- Requires
user_id
,memoryKey
,content
. - Optional fields:
title
,summary
,tags
(array of strings),importance
(float),confidence
(float),source
(string).
Example Request:
Example Response (201 Created
): The created MemoryBlobResponse object (content is not returned).
Update Memory Blob
Update specific fields of an existing memory blob. Requires user_id
and memoryKey
in the body for verification/encryption purposes.
Path parameters:
blobId
(string, required): The unique ID of the memory blob to update.
Request body: (application/json
)
- Requires
user_id
,memoryKey
. - Include only the fields you want to modify (e.g.,
title
,summary
,content
,tags
,importance
,confidence
). - Sending a
tags
array replaces all existing tags on the blob.
Example Request:
Example Response (200 OK
): The updated MemoryBlobResponse object (content is not returned).
Delete Memory Blob
Permanently delete a specific memory blob.
Path parameters:
blobId
(string, required): The unique ID of the memory blob to delete.
Query parameters:
user_id
(string, required): The unique ID of the user who owns the memory blob.
Example Request:
Example Response (200 OK
or 204 No Content
):