---
title: "Remember"
method: POST
path: "/api/v2/agents/{agent_id}/remember"
tags: ["Sessions & Agents", "Memory Operations"]
---

# Remember

`POST /api/v2/agents/{agent_id}/remember`

## Request

- The document declares no server URL.
- Auth: none declared

Store a memory (Session-based)

Requires:
- X-Session-Token: {session_token}

The session must be for the specified agent_id.

Provenance types:
- explicit_statement: Directly stated by user
- inferred: Derived from behavior/context
- observed: Seen in action
- validated: Confirmed/verified
- corrected: Updated after contradiction
- imported: From external source

## Path parameters

- `agent_id` string, required

## Headers

- `x-session-token` string, nullable
- `authorization` string, nullable
- `X-Api-Key` string, nullable

## Cookies

- `memanto_session_token` string, nullable

## Request body

- RememberRequest: Request body for remember endpoint
  - `content` string, required: Memory content
  - `type` 'fact' | 'preference' | 'goal' | 'decision' | 'artifact' | 'learning' | 'event' | 'instruction' | 'relationship' | 'context' | 'observation' | 'commitment' | 'error', nullable: Memory type. Omit to auto-parse.
  - `title` string, nullable: Memory title (defaults to truncated content)
  - `confidence` number: Confidence score (0-1)
  - `tags` string[], nullable: Tags for this memory
  - `status` 'active' | 'expired', nullable: Memory lifecycle status (e.g. active, expired)
  - `expired_at` string, date-time, nullable: When this memory was expired
  - `expired_by` string, nullable: What/who expired this memory
  - `source` string: Who wrote this memory — 'user', 'agent', or a specific writer such as 'cursor', 'codex', or 'claude_code'.
  - `provenance` string: How memory was obtained (explicit_statement, inferred, observed, etc.)

## Response `200`

Successful Response

- RememberResponse
  - `memory_id` string, required
  - `agent_id` string, required
  - `session_id` string, required
  - `namespace` string, required
  - `status` string, required
  - `provenance` string, required
  - `confidence` number, required
  - `type` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-21** `b26ebc4d9cd6`: 3 info
  - added the new optional request property `expired_at`
  - added the new optional request property `expired_by`
  - added the new optional request property `status`
- **2026-10-07** `b3f3b95ed5df`: 1 warning
  - changed the pattern of the request property `tags/anyOf[subschema #1]/items/` from `^[A-Za-z0-9._-]+$` to `^[^,\x00-\x1f\x7f\x85\u2028\u2029]+$`
- **2026-10-06** `783cdf33bdd1`: 1 breaking
  - added the pattern `^[A-Za-z0-9._-]+$` to the request property `tags/anyOf[subschema #1]/items/`
- **2026-09-01** `4dbab4daf6d3`: 1 info
  - added the new optional `header` request parameter `authorization`
- **2026-08-24** `f8fc41287ced`: 1 warning
  - removed the request property `ttl_seconds`

[Operation history](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/changes/api/v2/agents/:agent_id/remember/post.md)

---

[API](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love.md) - [All operations](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/llms.txt) - [OpenAPI document](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/revisions/ef842776283e?raw)
