---
title: "Import memories"
method: POST
path: "/memories/import"
tags: ["memories"]
---

# Import memories

`POST /memories/import`

Import memories into a user-owned space with payload validation.

## Request body

- MemoryImportRequest — Bulk import request for memories.
  - `version` string, nullable — Export payload schema version used for this import
  - `checksum` string, nullable — SHA-256 checksum of the exported memories payload
  - `checksum_algorithm` string, nullable — Checksum algorithm used for integrity validation
  - `memories` MemoryImportItem[], required — Memories to import
    - `content` string, required — Memory content text
    - `tags` string[], nullable — Tags for categorizing the memory
    - `source` string, nullable — Source of the memory
    - `importance` integer, nullable — Importance score (1-10)
    - `category` string, nullable — Memory category
    - `metadata` object, nullable — Additional metadata
  - `space_id` string, nullable — Target space for imported memories

## Response `200`

Import result summary

- MemoryImportResponse — Import operation result details.
  - `imported` integer, required — Number of successfully imported memories
  - `failed` integer, required — Number of failed memory imports
  - `errors` string[] — Validation/import errors
  - `space_id` string, required — Space where memories were imported

## Other responses

- `401` — Unauthorized
- `413` — Request Entity Too Large
- `422` — Validation Error

---

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