Sessions & Agents
Memory Operations
Apply Policy
Sweep the agent's memories and expire everything the policy matches.
Pass dry_run: true to see exactly what would be expired, with per-rule counts, without writing anything.
Requires:
- X-Session-Token: {session_token}
post/api/v2/agents/{agent_id}/policy/apply
Path parameters
agent_idstring required
Headers
x-session-tokenstring nullable
X-Api-Keystring nullable
Cookies
memanto_session_tokenstring nullable
Request body
Response
Successful Response
{"stackTrail":"paths:/api/v2/agents/{agent_id}/policy/apply:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}