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"
}'
{
"memory_id": "3f2a9c1e-5b7d-4e2a-9c1e-5b7d4e2a9c1e",
"agent_id": "my-agent",
"status": "queued",
"confidence": 0.9,
"provenance": "explicit_statement",
"type": "preference"
}
Memories
Remember
Store one memory.
POST
/
agents
/
{agent_id}
/
remember
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"
}'
{
"memory_id": "3f2a9c1e-5b7d-4e2a-9c1e-5b7d4e2a9c1e",
"agent_id": "my-agent",
"status": "queued",
"confidence": 0.9,
"provenance": "explicit_statement",
"type": "preference"
}
Overview
Stores one memory. It is queued and becomes searchable within moments. No session is needed: the API key is enough.Authentication
Your Memanto Cloud API key (
mk_...). See Authentication.Path Parameters
Body
One of
fact, preference, goal, decision, artifact, learning, event, instruction, relationship, context, observation, commitment, error.Up to 20 tags of up to 64 characters. A tag can’t contain a comma or line break, or start with
#.Who wrote the memory:
user, agent, or a tool slug such as cursor or claude-code. The tool appears on the console’s Connections page. Letters, digits, ., _ and -, up to 64 characters.How the memory was obtained:
explicit_statement, inferred, observed, validated, corrected, imported.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"
}'
{
"memory_id": "3f2a9c1e-5b7d-4e2a-9c1e-5b7d4e2a9c1e",
"agent_id": "my-agent",
"status": "queued",
"confidence": 0.9,
"provenance": "explicit_statement",
"type": "preference"
}