> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memorylake.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Memories

> Returns a paginated list of memories in a project

```
GET /openapi/memorylake/api/v2/projects/{id}/memories
```

Returns a paginated list of all memories stored in the project. Use `user_id` to filter memories belonging to a specific user.

<Note>
  **Permission required:** [`project:mem_list`](/features/team-collaboration/permission-reference#see-the-memories-tab) · `instance`
</Note>

### Path Parameters

<ParamField path="id" type="string" required>
  Project ID
</ParamField>

### Query Parameters

<ParamField query="page" type="integer" default="1">
  Page number (1-based)
</ParamField>

<ParamField query="size" type="integer" default="20">
  Page size (max 100)
</ParamField>

<ParamField query="user_id" type="string">
  Filter by user ID
</ParamField>

<ParamField query="keyword" type="string">
  Filter by content keyword (substring match)
</ParamField>

<ParamField query="expired" type="boolean">
  Filter by expired status
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v2/projects/proj-a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6/memories?page=1&size=20&user_id=user-abc123' \
    -H 'Authorization: Bearer sk_xxxxxx'
  ```
</RequestExample>

### Response

<ResponseField name="data" type="object">
  <Expandable title="Paginated memory list">
    <ResponseField name="items" type="array">
      Array of memory objects

      <Expandable title="Memory object">
        <ResponseField name="id" type="string">Memory ID</ResponseField>
        <ResponseField name="content" type="string">Memory content</ResponseField>
        <ResponseField name="expired" type="boolean">Whether the memory has been forgotten</ResponseField>
        <ResponseField name="user_id" type="string">Associated user ID</ResponseField>
        <ResponseField name="created_at" type="string">Creation timestamp</ResponseField>
        <ResponseField name="updated_at" type="string">Last update timestamp</ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="total" type="integer">Total number of memories</ResponseField>
    <ResponseField name="page" type="integer">Current page number</ResponseField>
    <ResponseField name="size" type="integer">Page size</ResponseField>
    <ResponseField name="total_pages" type="integer">Total number of pages</ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success (200) theme={null}
  {
    "success": true,
    "data": {
      "items": [
        {
          "id": "mem-123",
          "content": "User prefers Hangzhou cuisine restaurants",
          "expired": false,
          "user_id": "user-abc123",
          "created_at": "2024-01-15T10:00:00Z",
          "updated_at": "2024-01-15T10:00:00Z"
        }
      ],
      "total": 1,
      "page": 1,
      "size": 20,
      "total_pages": 1
    }
  }
  ```
</ResponseExample>
