---
title: "POST /v2/memories/"
method: POST
path: "/v2/memories/"
tags: ["memories"]
deprecated: true
---

# POST /v2/memories/

`POST /v2/memories/`

> **Deprecated.**

Get all memories.

## Request body

- MemoryGetInputV2
  - `filters` object, required — A dictionary of filters to apply to retrieve memories. Available fields are: user_id, agent_id, app_id, run_id, created_at, updated_at, categories, keywords. Supports logical operators (AND, OR) and comparison operators (in, gte, lte, gt, lt, ne, contains, icontains, *). For categories field, use 'contains' for partial matching (e.g., {"categories": {"contains": "finance"}}) or 'in' for exact matching (e.g., {"categories": {"in": ["personal_information"]}}).
    - `user_id` string
    - `agent_id` string
    - `app_id` string
    - `run_id` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `keywords` object
      - `contains` string
      - `icontains` string
    - `categories` object
      - `in` string[]
    - `metadata` object
  - `fields` string[] — A list of field names to include in the response. If not provided, all fields will be returned.
  - `page` integer — Page number for pagination. Default: 1
  - `page_size` integer — Number of items per page. Default: 100
  - `org_id` string, nullable — The unique identifier of the organization associated with the memory.
  - `project_id` string, nullable — The unique identifier of the project associated with the memory.

## Response `200`

Successfully retrieved memories.

- object[]
  - `id` string, uuid, required — Unique memory identifier.
  - `memory` string, required — The extracted memory fact.
  - `user_id` string, nullable — User the memory is scoped to.
  - `agent_id` string, nullable — Agent the memory is scoped to.
  - `app_id` string, nullable — App the memory is scoped to.
  - `session_id` string, nullable — Run/session the memory is scoped to. Note: this endpoint returns this field as `session_id`, matching `POST /v3/memories/`.
  - `metadata` object, nullable — Additional metadata associated with the memory
  - `categories` string[], nullable
  - `created_at` string, date-time, required — Timestamp of when the memory was created.
  - `updated_at` string, date-time, required — Timestamp of when the memory was last updated.
  - `expiration_date` string, date, nullable — The date when the memory will expire. Format: YYYY-MM-DD.
  - `structured_attributes` object, nullable — System-derived temporal breakdown of the memory's creation time (e.g. year, month, day_of_week).
  - `replaced_by` string, nullable — ID of the memory that superseded this one, if any.
  - `synthesized` boolean — Whether this memory was synthesized rather than directly extracted.

## Other responses

- `400` — Bad Request.

---

[API](https://skmtc.net/mem0/apis/mem0-api-docs.md) · [All operations](https://skmtc.net/mem0/apis/mem0-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mem0/mem0-api-docs/revisions/c86fe9831e7e/schema)
