latestOpenAPI 3.1.02026-08-221163801019.2 KB

f0f28319e448

User

Get memories

Retrieve memories for the specified users.

Permissions

This endpoint may be impacted by the following permissions:

  • Only memories with references that the authenticated user has the Conversation:GetMessage permission on will be returned.
get/v1/{organization}/user/{user_id}/memory

Path parameters

organizationstring required
user_idstring required

The ID of the user to retrieve memories for.

The ID of the user to retrieve memories for.

Query parameters

idstring[]

The IDs of the memories to retrieve.

The IDs of the memories to retrieve.

conversation_idstring[]

The IDs of the conversations to retrieve memories from.

The IDs of the conversations to retrieve memories from.

limitinteger

The maximum number of memories to retrieve.

The maximum number of memories to retrieve.

continuation_tokeninteger

The token from the previous request to return the next page of memories.

The token from the previous request to return the next page of memories.

sort_bystring[]

The fields to sort the sets by. Supported fields are conversation_id and created_at. Specify a + before the field name to indicate ascending sorting and - for descending sorting. Multiple fields can be specified to break ties.

The fields to sort the sets by. Supported fields are conversation_id and created_at. Specify a + before the field name to indicate ascending sorting and - for descending sorting. Multiple fields can be specified to break ties.

Headers

x-mongo-cluster-namestring nullable

The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.

The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.

Sec-WebSocket-Protocolstring[]

Response

Succeeded.

has_moreboolean required

Whether there are more memories to retrieve.

continuation_tokeninteger nullable required

A token to supply to the next request to retrieve the next page of memories. Only populated if has_more is True.