---
title: "Save memory"
method: POST
path: "/memory"
tags: ["memory"]
---

# Save memory

`POST /memory`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/memory`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Save a durable workspace memory fact.

## Request body

- object
  - `key` string, required: Stable memory key.
  - `kind` 'fact' | 'decision' | 'preference' | 'goal' | 'tool_note' | 'other' | 'convention' | 'project_context' | 'agent_lesson' | 'docs_knowledge' | 'open_goal', required: Memory classification.
  - `text` string, required: Memory body. No secrets or scratch notes.
  - `tags` string[]
  - `sensitivity` 'normal' | 'broad' | 'sensitive': Sensitivity tier; `sensitive` memories land in needs-review.
  - `visibility` 'user' | 'org': Who can see the memory. Defaults to `user`.
  - `projectId` string
  - `sourceQuote` string
  - `confidence` number
  - `importance` number

## Response `200`

Successful response

- object
  - `ok` boolean, required
  - `memoryId` string, required
  - `status` 'active' | 'needs_review' | 'archived', required

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

[API](https://skmtc.dev/dench/apis/dench-api.md) - [All operations](https://skmtc.dev/dench/apis/dench-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dench/apis/dench-api/revisions/4a145b38f19c?raw)
