curl -X GET "https://api.memanto.ai/agents/my-agent/policy/presets/balanced" \
-H "x-api-key: $MEMANTO_API_KEY"
{
"name": "balanced",
"description": "Sensible defaults: transient state ages out in weeks, semantic knowledge in months, durable truths never.",
"policy": {
"version": 1,
"retention": {
"context": "7d",
"event": "30d",
"error": "30d",
"observation": "60d",
"commitment": "90d",
"artifact": "180d"
},
"rules": [
{
"name": "pinned",
"match": {
"tags": [
"pinned"
]
},
"expire_after": "never"
},
{
"name": "scratch-notes",
"match": {
"tags": [
"scratch",
"temp"
]
},
"expire_after": "3d"
},
{
"name": "low-confidence-guesses",
"match": {
"provenance": [
"inferred"
],
"confidence_below": 0.5
},
"expire_after": "14d"
}
],
"purge_expired_after": "never"
}
}
Expiry Policy
Get Policy Preset
One predefined policy in full.
GET
/
agents
/
{agent_id}
/
policy
/
presets
/
{name}
curl -X GET "https://api.memanto.ai/agents/my-agent/policy/presets/balanced" \
-H "x-api-key: $MEMANTO_API_KEY"
{
"name": "balanced",
"description": "Sensible defaults: transient state ages out in weeks, semantic knowledge in months, durable truths never.",
"policy": {
"version": 1,
"retention": {
"context": "7d",
"event": "30d",
"error": "30d",
"observation": "60d",
"commitment": "90d",
"artifact": "180d"
},
"rules": [
{
"name": "pinned",
"match": {
"tags": [
"pinned"
]
},
"expire_after": "never"
},
{
"name": "scratch-notes",
"match": {
"tags": [
"scratch",
"temp"
]
},
"expire_after": "3d"
},
{
"name": "low-confidence-guesses",
"match": {
"provenance": [
"inferred"
],
"confidence_below": 0.5
},
"expire_after": "14d"
}
],
"purge_expired_after": "never"
}
}
Overview
Returns one preset’s full policy without applying it.Authentication
Your Memanto Cloud API key (
mk_...). See Authentication.Path Parameters
curl -X GET "https://api.memanto.ai/agents/my-agent/policy/presets/balanced" \
-H "x-api-key: $MEMANTO_API_KEY"
{
"name": "balanced",
"description": "Sensible defaults: transient state ages out in weeks, semantic knowledge in months, durable truths never.",
"policy": {
"version": 1,
"retention": {
"context": "7d",
"event": "30d",
"error": "30d",
"observation": "60d",
"commitment": "90d",
"artifact": "180d"
},
"rules": [
{
"name": "pinned",
"match": {
"tags": [
"pinned"
]
},
"expire_after": "never"
},
{
"name": "scratch-notes",
"match": {
"tags": [
"scratch",
"temp"
]
},
"expire_after": "3d"
},
{
"name": "low-confidence-guesses",
"match": {
"provenance": [
"inferred"
],
"confidence_below": 0.5
},
"expire_after": "14d"
}
],
"purge_expired_after": "never"
}
}