Memories
List memories
Find notes in your organization.
GET
/
api
/
v2
/
memories
from hai_agents import Client
client = Client()
page = client.memories.list_memories(namespace="market-research", page=1, size=100)
for note in page.items:
print(note.key, note.value)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
const page = await client.memories.listMemories({ namespace: "market-research", page: 1, size: 100 });
for (const note of page.items) console.log(note.key, note.value);
curl "https://agp.eu.hcompany.ai/api/v2/memories?namespace=market-research&page=1&size=100" -H "Authorization: Bearer $HAI_API_KEY"
holo --json memories list --namespace market-research --page 1 --size 100
{
"items": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"namespace": "market-research",
"key": "preferences/report-format",
"value": "Tables, with a source link per row.",
"created_at": "2026-12-02T10:00:00Z",
"updated_at": "2026-12-02T10:00:00Z",
"delete_after_min": null
}
],
"total": 1,
"page": 1
}
Query parameters
-updated_at (newest first, the default) or updated_at. Repeat the query parameter to pass an array.Response
200 with items (an array of memory objects), total, and page. Increase page until you have read total items.
from hai_agents import Client
client = Client()
page = client.memories.list_memories(namespace="market-research", page=1, size=100)
for note in page.items:
print(note.key, note.value)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
const page = await client.memories.listMemories({ namespace: "market-research", page: 1, size: 100 });
for (const note of page.items) console.log(note.key, note.value);
curl "https://agp.eu.hcompany.ai/api/v2/memories?namespace=market-research&page=1&size=100" -H "Authorization: Bearer $HAI_API_KEY"
holo --json memories list --namespace market-research --page 1 --size 100
{
"items": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"namespace": "market-research",
"key": "preferences/report-format",
"value": "Tables, with a source link per row.",
"created_at": "2026-12-02T10:00:00Z",
"updated_at": "2026-12-02T10:00:00Z",
"delete_after_min": null
}
],
"total": 1,
"page": 1
}
Errors
422 for invalid input. See common errors.Was this page helpful?
⌘I
from hai_agents import Client
client = Client()
page = client.memories.list_memories(namespace="market-research", page=1, size=100)
for note in page.items:
print(note.key, note.value)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
const page = await client.memories.listMemories({ namespace: "market-research", page: 1, size: 100 });
for (const note of page.items) console.log(note.key, note.value);
curl "https://agp.eu.hcompany.ai/api/v2/memories?namespace=market-research&page=1&size=100" -H "Authorization: Bearer $HAI_API_KEY"
holo --json memories list --namespace market-research --page 1 --size 100
{
"items": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"namespace": "market-research",
"key": "preferences/report-format",
"value": "Tables, with a source link per row.",
"created_at": "2026-12-02T10:00:00Z",
"updated_at": "2026-12-02T10:00:00Z",
"delete_after_min": null
}
],
"total": 1,
"page": 1
}