curl -X POST "https://api.memanto.ai/agents/my-agent/memories/3f2a9c1e-…/expire" \
-H "x-api-key: $MEMANTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "outdated"
}'
{
"agent_id": "my-agent",
"memory_id": "3f2a9c1e-…",
"status": "expired",
"expired_at": "2026-11-19T15:04:05.000Z",
"expired_by": "outdated"
}
Memories
Expire Memory
Mark one memory expired. Reversible.
POST
/
agents
/
{agent_id}
/
memories
/
{memory_id}
/
expire
curl -X POST "https://api.memanto.ai/agents/my-agent/memories/3f2a9c1e-…/expire" \
-H "x-api-key: $MEMANTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "outdated"
}'
{
"agent_id": "my-agent",
"memory_id": "3f2a9c1e-…",
"status": "expired",
"expired_at": "2026-11-19T15:04:05.000Z",
"expired_by": "outdated"
}
Overview
Marks the memory expired. Passstatus: "active" on recall to leave expired memories out. Restore undoes it.
Authentication
Your Memanto Cloud API key (
mk_...). See Authentication.Path Parameters
Body
curl -X POST "https://api.memanto.ai/agents/my-agent/memories/3f2a9c1e-…/expire" \
-H "x-api-key: $MEMANTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "outdated"
}'
{
"agent_id": "my-agent",
"memory_id": "3f2a9c1e-…",
"status": "expired",
"expired_at": "2026-11-19T15:04:05.000Z",
"expired_by": "outdated"
}