curl -X GET "https://api.memanto.ai/agents/my-agent/policy" \
-H "x-api-key: $MEMANTO_API_KEY"
{
"agent_id": "my-agent",
"policy": {
"version": 1,
"retention": {
"context": "30d",
"event": "90d"
},
"rules": [
{
"name": "pin-instructions",
"match": {
"type": [
"instruction"
]
},
"expire_after": "never"
}
],
"purge_expired_after": "never"
},
"is_empty": false
}
Expiry Policy
Get Policy
The agent’s expiry policy.
GET
/
agents
/
{agent_id}
/
policy
curl -X GET "https://api.memanto.ai/agents/my-agent/policy" \
-H "x-api-key: $MEMANTO_API_KEY"
{
"agent_id": "my-agent",
"policy": {
"version": 1,
"retention": {
"context": "30d",
"event": "90d"
},
"rules": [
{
"name": "pin-instructions",
"match": {
"type": [
"instruction"
]
},
"expire_after": "never"
}
],
"purge_expired_after": "never"
},
"is_empty": false
}
Overview
Returns the agent’s expiry policy.is_empty is true when nothing would ever expire. The policy format (retention, rules, purge_expired_after) is the same as on Memanto local; see Set Policy and Memory lifecycle.
Authentication
Your Memanto Cloud API key (
mk_...). See Authentication.Path Parameters
curl -X GET "https://api.memanto.ai/agents/my-agent/policy" \
-H "x-api-key: $MEMANTO_API_KEY"
{
"agent_id": "my-agent",
"policy": {
"version": 1,
"retention": {
"context": "30d",
"event": "90d"
},
"rules": [
{
"name": "pin-instructions",
"match": {
"type": [
"instruction"
]
},
"expire_after": "never"
}
],
"purge_expired_after": "never"
},
"is_empty": false
}