Skip to main content
GET
Search an agent's current memories

Authorizations

Authorization
string
header
required

A Recursion API key, created in the console under API keys.

Headers

x-tenant-id
string

Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.

Minimum string length: 1
x-organization-id
string

Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.

Minimum string length: 1

Path Parameters

agentId
string<uuid>
required

Agent whose permanent collection is being searched.

Query Parameters

query
string

Case-insensitive search across memory path, summary, and content.

topic
string

Top-level collection topic returned in topics; filters an entire path segment.

sort
enum<string>

Sort by most recently updated (default) or alphabetically by path.

Available options:
updated,
alphabetical
cursor
string

Opaque nextCursor from the previous page with the same search settings.

limit
integer
default:50

Page size from 1 through 100, default 50.

Required range: 1 <= x <= 100

Response

A searchable page of an agent's current memories.

A searchable page of an agent's current memories.

items
object[]
required

Current memories matching the query, without full content.

nextCursor
null | string
required

Opaque cursor for the next page, or null at the end.

topics
string[]
required

Topics from the entire current collection, independent of search and pagination.