v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465766489.0 KB

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

Empty sessions are automatically deleted after one day.

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

post/memories/{memoryId}/actor/{actorId}/sessions

Path parameters

memoryIdstring required

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

actorIdstring required

The identifier of the actor for which to list sessions.

Request body

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.