Skip to main content
GET

Overview

Returns the agent’s expiry policy: the per-type retention table, the named rules, and the purge window. An agent with no policy set returns an empty one, with is_empty set to true — that policy expires nothing. See the Memory Lifecycle reference for how the two halves interact.

Authentication

API clients do not send an API key or Authorization header.
string
required
Session token from Activate Agent. Must match agent_id.

Path Parameters

string
required
The unique identifier of the agent.

Notes

  • Unset match conditions are omitted from the response rather than returned as null.
  • Rules are returned in evaluation order: the first one that matches a memory wins and overrides the retention table.
  • The policy is stored per agent at ~/.memanto/policies/<agent-id>.yaml.

Next Steps