List memory layers
Every memory layer in a workspace, the ones you author and the ones agents write for themselves.
SKILLS layers you author, and the EPISODIC layers Cadenya creates when an agent writes to itself with store_memory.
systemManaged is the tell. A true layer is episodic memory Cadenya manages for an agent; you rarely create or edit one by hand. A false layer is one you authored.
Two types
MEMORY_LAYER_TYPE_UNSPECIFIED is rejected on create, so those two are all you see.
Filters, and which field each one hits
Five ways to narrow the list, and they target different fields. This matters, because the two prefix-style filters look alike and are not.prefix searches names and episodicKeyPrefix searches episodic keys. Reach for episodicKeyPrefix when you want every episodic session under a namespace, the way a customer/ prefix collects customer/42 and customer/43.
type combines with the rest. type: 'MEMORY_LAYER_TYPE_SKILLS' returns only the layers you author, which is usually what a configuration UI wants.
Expired episodic layers linger
An episodic layer carries a TTL that slides forward with each objective sharing its key. When the TTL passes, the entries stop resolving:get_memory and search_memory filter on entry expiry, so an agent reads nothing from an expired session. The layer row itself, though, stays in this list rather than being cleaned up. An EPISODIC row with an expiresAt in the past is expired memory the agent can no longer read, not a live layer.
Related
Create a memory layer
SKILLS layers you author, and their TTL.Memory layers
List memory entries
Create an agent
enableEpisodicMemory, which makes the system-managed layers.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"
Query Parameters
Maximum number of results to return
Pagination cursor from previous response
Filter expression (query param: prefix)
Free-form search query
Filter by layer type
MEMORY_LAYER_TYPE_UNSPECIFIED, MEMORY_LAYER_TYPE_EPISODIC, MEMORY_LAYER_TYPE_SKILLS Filter to episodic layers belonging to this agent.
"agent_01HXKD2E5NQM3T9AYWCFMGWT9Y"
Filter to episodic layers whose episodic key starts with this prefix (e.g. "customer/" matches "customer/42" and "customer/43"). Useful for namespaced keys, similar to a redis key scan.
Filters by metadata labels. Comma-separated key=value pairs, e.g. "env=prod,team=ai". A resource matches only if every pair matches exactly (AND semantics).
Sort order for results (asc or desc by creation time)
When set to true you may use more of your alloted API rate-limit