latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-205440153.2 KB

f8fc41287ced

Sessions & Agents
Memory Operations

Get Policy

Return the agent's expiry policy (Session-based).

An agent with no policy set returns an empty one, which expires nothing.

Requires:

  • X-Session-Token: {session_token}
get/api/v2/agents/{agent_id}/policy

Path parameters

agent_idstring required

Headers

x-session-tokenstring nullable
X-Api-Keystring nullable

Cookies

memanto_session_tokenstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/v2/agents/{agent_id}/policy:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}