---
title: "Create Memory"
method: POST
path: "/memories"
tags: ["Memory"]
---

# Create Memory

`POST /memories`

Create a new user memory with content and associated topics. Memories are used to store contextual information for users across conversations.

## Query parameters

- `db_id` string, nullable — Database ID to use for memory storage
- `table` string, nullable — Table to use for memory storage

## Request body

- UserMemoryCreateSchema — Define the payload expected for creating a new user memory
  - `memory` string, required — Memory content text
  - `user_id` string, nullable — User ID who owns this memory
  - `topics` string[], nullable — Topics or tags to categorize the memory

## Response `200`

Memory created successfully

- UserMemorySchema
  - `memory_id` string, required — Unique identifier for the memory
  - `memory` string, required — Memory content text
  - `topics` string[], nullable — Topics or tags associated with the memory
  - `agent_id` string, nullable — Agent ID associated with this memory
  - `team_id` string, nullable — Team ID associated with this memory
  - `user_id` string, nullable — User ID who owns this memory
  - `updated_at` string, date-time, nullable — Timestamp when memory was last updated

## Other responses

- `400` — Invalid request data
- `401` — Unauthorized
- `404` — Not Found
- `422` — Validation error in payload
- `500` — Failed to create memory

---

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