List a group's memories
curl --request GET \
--url https://albus.sh/api/memories \
--header 'Authorization: Bearer <token>'import requests
url = "https://albus.sh/api/memories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://albus.sh/api/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"memories": [
{
"id": "<string>",
"content": "<string>",
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"source_session": "<string>",
"source_invocation": "<string>"
}
],
"next_cursor": "<string>"
}{
"message": "Invalid request parameters"
}{
"message": "Invalid or expired token"
}Memories
List a group's memories
Lists the memories of one memory group, newest first: both the memories agents currently read and those a later memory has replaced. A group nothing has been remembered in yet is an empty list, not an error.
Page with after and limit: pass the response’s next_cursor as the next request’s after, and keep requesting while next_cursor is present — you have reached the end when it is absent.
GET
/
memories
List a group's memories
curl --request GET \
--url https://albus.sh/api/memories \
--header 'Authorization: Bearer <token>'import requests
url = "https://albus.sh/api/memories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://albus.sh/api/memories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"memories": [
{
"id": "<string>",
"content": "<string>",
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"source_session": "<string>",
"source_invocation": "<string>"
}
],
"next_cursor": "<string>"
}{
"message": "Invalid request parameters"
}{
"message": "Invalid or expired token"
}Authorizations
bearerAuthapiKey
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The memory group to read or delete — the memory.group value the agents sharing those memories run with.
Required string length:
1 - 256Opaque pagination cursor. Return only items positioned after it; pass a value obtained from a previous page to fetch the next one.
Maximum number of items to return.
Required range:
1 <= x <= 1000