GET /v1/memories
List memories for your organization with optional filtering by agent and user. Results are paginated using opaque cursors. Content is excluded from results — use GET /v1/memories/{id} to fetch the full record.
Required scope: memory:read
Request
Query parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
agent_id | string | no | — | Filter to memories belonging to this agent. Must match [A-Za-z0-9._:-], max 256 chars. Omit to list all agents. |
user_id | string | no | — | Filter to memories belonging to this user. Same constraints. Omit to list all users. |
limit | integer | no | 50 | Results per page. Range: 1–200. Values outside range are clamped. |
cursor | string | no | — | Opaque cursor from next_cursor of a previous response. Omit for the first page. |
Response
200 OK
Top-level fields
| Field | Type | Description |
|---|---|---|
results | array | Current page of memory records. |
next_cursor | string | omitted | Opaque pagination cursor. Pass as cursor in the next request. Absent when no more pages remain. |
Memory record fields
| Field | Type | Description |
|---|---|---|
id | string (UUID) | Memory identifier |
org_id | string | Your organization identifier |
agent_id | string | Agent that owns the memory |
user_id | string | User the memory belongs to |
level | integer | 0 = raw, 1 = abstraction |
status | string | "active" or "deprecated" |
importance | float (0–1) | Importance score |
confidence | float (0–1) | Confidence score |
source | string | Origin of the memory (e.g. "agent") |
created_at | ISO 8601 string | Creation timestamp |
updated_at | ISO 8601 string | Last update timestamp |
content is intentionally omitted from list results to keep paginated payloads small. Use GET /v1/memories/{id} to retrieve the full record including content.Pagination
Iterate through all pages by followingnext_cursor until it is absent:
Examples
- Python
- TypeScript
Errors
| Status | Code | Description |
|---|---|---|
400 | validation_error | Invalid agent_id or user_id charset |
401 | unauthorized | Missing or invalid API key |
401 | forbidden | API key lacks memory:read scope |
429 | rate_limited | Rate limit exceeded |
500 | internal_error | Server error |