v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465766489.0 KB

Lists memory records in an AgentCore Memory resource based on specified criteria. We recommend using pagination to ensure that the operation returns quickly and successfully.

To use this operation, you must have the bedrock-agentcore:ListMemoryRecords permission.

post/memories/{memoryId}/memoryRecords

Path parameters

memoryIdstring required

The identifier of the AgentCore Memory resource for which to list memory records.

Request body

namespacestring

The namespace prefix to filter memory records by. Returns all memory records in namespaces that start with the provided prefix. Either <code>namespace</code> or <code>namespacePath</code> is required.

namespacePathstring

Use namespacePath for hierarchical retrievals. Return all memory records where namespace falls under the same parent hierarchy. Either <code>namespace</code> or <code>namespacePath</code> is required.

memoryStrategyIdstring

The memory strategy identifier to filter memory records by. If specified, only memory records with this strategy ID are returned.

maxResultsinteger

The maximum number of results to return in a single call. The default value is 20.

nextTokenstring

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

Response

Success

nextTokenstring

The token to use in a subsequent request to get the next set of results. This value is null when there are no more results to return.