---
title: "Write Strategy Memory Endpoint"
method: POST
path: "/v1/strategies/{strategy_id}/memory"
tags: ["strategies"]
---

# Write Strategy Memory Endpoint

`POST /v1/strategies/{strategy_id}/memory`

## Request

- Base URL: `https://api.usekeel.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.usekeel.io/v1/strategies/{strategy_id}/memory`
- Auth: none declared

Append a note to a strategy's memory. Append-only; no edits.

`role` defaults to "agent" — the typical MCP path. Web/chat-api
callers may pass "user" if they want a note flagged as authored by
a human. The "system" role is reserved for chat-api's
auto-summarization writes (which omit the column and rely on the
default).

## Path parameters

- `strategy_id` string, required

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Request body

- StrategyMemoryWriteRequest: Body for POST /v1/strategies/{id}/memory.
  - `note` string, required
  - `role` 'user' | 'agent'

## Response `201`

Successful Response

- StrategyMemoryItem: A single strategy memory note row.
  - `memory_id` string, required
  - `strategy_id` string, required
  - `memory_type` string, nullable
  - `content` string, required
  - `written_by_role` string, required
  - `source_conversation_id` string, nullable
  - `created_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usekeel/apis/keel-api.md) · [All operations](https://skmtc.dev/usekeel/apis/keel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/usekeel/apis/keel-api/revisions/3191ca10b0ab?raw)
