---
title: "Create Memory"
method: POST
path: "/v1/memory"
tags: ["memory management"]
---

# Create Memory

`POST /v1/memory`

Create a new memory entry for the caller (or, for admins, any scope).

## Request body

- MemoryCreateRequest
  - `key` string, required — Memory key (acts as the namespace in the URL).
  - `value` string, required — Memory content. Typically markdown/text for LLM context.
  - `metadata` unknown
  - `user_id` string, nullable — Scope to this user. Defaults to the caller's user_id.
  - `team_id` string, nullable — Scope to this team. Defaults to the caller's team_id.

## Response `200`

Successful Response

- LiteLLMMemoryRow
  - `memory_id` string, required
  - `key` string, required
  - `value` string, required
  - `metadata` unknown
  - `user_id` string, nullable
  - `team_id` string, nullable
  - `created_at` string, date-time, nullable
  - `created_by` string, nullable
  - `updated_at` string, date-time, nullable
  - `updated_by` string, nullable

## Other responses

- `422` — Validation Error

---

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