> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Remember

> Store one memory.

## Overview

Stores one memory. It is queued and becomes searchable within moments. No session is needed: the API key is enough.

## Authentication

**x-api-key** `string` *required*

Your Memanto Cloud API key (`mk_...`). See [Authentication](https://docs.memanto.ai/cloud/api/introduction.md#authentication).

## Path Parameters

**agent\_id** `string` *required*

The agent's ID.

## Body

**content** `string` *required*

The memory text, up to 10,000 characters.

**type** `string` (default: fact)

One of `fact`, `preference`, `goal`, `decision`, `artifact`, `learning`, `event`, `instruction`, `relationship`, `context`, `observation`, `commitment`, `error`.

**title** `string`

Up to 100 characters. Derived from the content when omitted.

**confidence** `number` (default: 0.8)

Between `0.0` and `1.0`.

**tags** `array`

Up to 20 tags of up to 64 characters. A tag can't contain a comma or line break, or start with `#`.

**source** `string` (default: agent)

Who wrote the memory: `user`, `agent`, or a tool slug such as `cursor` or `claude-code`. The tool appears on the console's [Connections](https://docs.memanto.ai/cloud/console/connections.md) page. Letters, digits, `.`, `_` and `-`, up to 64 characters.

**provenance** `string` (default: explicit\_statement)

How the memory was obtained: `explicit_statement`, `inferred`, `observed`, `validated`, `corrected`, `imported`.

```bash cURL theme={null}
curl -X POST "https://api.memanto.ai/agents/my-agent/remember" \
  -H "x-api-key: $MEMANTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "The user prefers dark mode",
    "type": "preference",
    "confidence": 0.9,
    "tags": [
      "ui"
    ],
    "source": "my-app"
  }'
```

```json 200 - OK theme={null}
{
  "memory_id": "3f2a9c1e-5b7d-4e2a-9c1e-5b7d4e2a9c1e",
  "agent_id": "my-agent",
  "status": "queued",
  "confidence": 0.9,
  "provenance": "explicit_statement",
  "type": "preference"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.