---
title: "Store an already-encrypted memory"
method: POST
path: "/v1/memory/sealed"
tags: ["Blind vault"]
---

# Store an already-encrypted memory

`POST /v1/memory/sealed`

## Request

- Base URL: `https://api.chainmemory.ai`
- URL: `https://api.chainmemory.ai/v1/memory/sealed`
- Auth: API key in header `x-api-key`

Blind vault: the client encrypts the content and sends an opaque blob. The server charges the same fee, anchors the hash and stores bytes it cannot read. Unlike a plaintext memory, the `event_hash` comes from the client, so a sealed memory is citable as evidence immediately. Requires a custodial key able to sign the anchor. Optional `embedding` (since 2026-09-21): the memory's search vector, computed on the client. With it the memory appears in semantic search without the server reading it; the response says so in `searchable`. Without it the memory is stored anyway, but it can only be found by project or tag.

## Request body

- object
  - `blob_b64` string, required: Versioned envelope, base64: 0x02 || IV || ciphertext || tag
  - `event_hash` string, required: SHA-256 computed by the client, 32 bytes hex
  - `plain_len` integer, required: Plaintext length, for quota accounting
  - `category` string
  - `importance` integer
  - `platform` string
  - `project` string
  - `tags` string[]
  - `embedding` number[]: 384 numbers, L2-normalized (norm 1, tolerance 0.001): the all-MiniLM-L6-v2 vector computed on the client, [CLS] + up to 254 tokens + [SEP], mean pooling

## Response `200`

Sealed memory stored

## Other responses

- `400`: Invalid blob_b64 or event_hash, or `embedding invalido: …` when the vector is not 384 finite numbers with norm 1
- `402`: insufficient_aic
- `409`: Sealed writes need a custodial key able to sign the anchor
- `413`: Blob too large for one transaction

---

[API](https://skmtc.dev/chainmemory/apis/chainmemory-api.md) · [All operations](https://skmtc.dev/chainmemory/apis/chainmemory-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chainmemory/apis/chainmemory-api/revisions/5331e0f0b6af?raw)
