curl --request PUT \
--url https://api.mnemom.ai/v1/orgs/{org_id}/protection-template \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"card_version": "<string>",
"agent_id": "<string>",
"thresholds": {
"warn": 123,
"quarantine": 123,
"block": 123
},
"screen_surfaces": [
"<string>"
],
"trusted_sources": [
{
"pattern": "<string>",
"risk_multiplier": 123
}
],
"_composition": {
"canonical_id": "<string>",
"composed_at": "2023-11-07T05:31:56Z",
"scopes_applied": [
{
"scope": "<string>",
"version": 123,
"template_version": 123,
"card_id": "<string>"
}
],
"exemptions_applied": [
"<string>"
],
"source_card_id": "<string>",
"source_policy_id": "<string>"
}
}
'{
"org_id": "<string>",
"template": {
"card_version": "<string>",
"agent_id": "<string>",
"values": {
"declared": [
"<string>"
],
"definitions": {},
"conflicts_with": [
"<string>"
]
},
"autonomy": {
"bounded_actions": [
"<string>"
],
"escalation_triggers": [
{
"condition": "<string>",
"reason": "<string>"
}
],
"forbidden_actions": [
"<string>"
],
"max_autonomous_value": {
"amount": 123,
"currency": "<string>"
}
},
"audit": {
"retention_days": 123,
"queryable": true,
"trace_format": "<string>",
"query_endpoint": "<string>",
"storage": {
"location": "<string>"
}
},
"card_id": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"principal": {
"identifier": "<string>",
"escalation_contact": "<string>"
},
"conscience": {
"values": [
{
"content": "<string>",
"id": "<string>"
}
]
},
"integrity": {},
"capabilities": {},
"enforcement": {
"forbidden_tools": [
{
"pattern": "<string>",
"reason": "<string>"
}
],
"fail_open": true,
"grace_period_hours": 123
},
"extensions": {},
"_composition": {
"canonical_id": "<string>",
"composed_at": "2023-11-07T05:31:56Z",
"scopes_applied": [
{
"scope": "<string>",
"version": 123,
"template_version": 123,
"card_id": "<string>"
}
],
"exemptions_applied": [
"<string>"
],
"source_card_id": "<string>",
"source_policy_id": "<string>"
}
},
"enabled": true,
"agents_flagged_for_recompose": 123
}Requires org owner/admin. Body cap: 64 KiB. Every member agent is flagged for canonical recompose. Requires Idempotency-Key. See ADR-008.
curl --request PUT \
--url https://api.mnemom.ai/v1/orgs/{org_id}/protection-template \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"card_version": "<string>",
"agent_id": "<string>",
"thresholds": {
"warn": 123,
"quarantine": 123,
"block": 123
},
"screen_surfaces": [
"<string>"
],
"trusted_sources": [
{
"pattern": "<string>",
"risk_multiplier": 123
}
],
"_composition": {
"canonical_id": "<string>",
"composed_at": "2023-11-07T05:31:56Z",
"scopes_applied": [
{
"scope": "<string>",
"version": 123,
"template_version": 123,
"card_id": "<string>"
}
],
"exemptions_applied": [
"<string>"
],
"source_card_id": "<string>",
"source_policy_id": "<string>"
}
}
'{
"org_id": "<string>",
"template": {
"card_version": "<string>",
"agent_id": "<string>",
"values": {
"declared": [
"<string>"
],
"definitions": {},
"conflicts_with": [
"<string>"
]
},
"autonomy": {
"bounded_actions": [
"<string>"
],
"escalation_triggers": [
{
"condition": "<string>",
"reason": "<string>"
}
],
"forbidden_actions": [
"<string>"
],
"max_autonomous_value": {
"amount": 123,
"currency": "<string>"
}
},
"audit": {
"retention_days": 123,
"queryable": true,
"trace_format": "<string>",
"query_endpoint": "<string>",
"storage": {
"location": "<string>"
}
},
"card_id": "<string>",
"issued_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"principal": {
"identifier": "<string>",
"escalation_contact": "<string>"
},
"conscience": {
"values": [
{
"content": "<string>",
"id": "<string>"
}
]
},
"integrity": {},
"capabilities": {},
"enforcement": {
"forbidden_tools": [
{
"pattern": "<string>",
"reason": "<string>"
}
],
"fail_open": true,
"grace_period_hours": 123
},
"extensions": {},
"_composition": {
"canonical_id": "<string>",
"composed_at": "2023-11-07T05:31:56Z",
"scopes_applied": [
{
"scope": "<string>",
"version": 123,
"template_version": 123,
"card_id": "<string>"
}
],
"exemptions_applied": [
"<string>"
],
"source_card_id": "<string>",
"source_policy_id": "<string>"
}
},
"enabled": true,
"agents_flagged_for_recompose": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.mnemom.ai/llms.txt
Use this file to discover all available pages before exploring further.
Supabase JWT token in Authorization: Bearer header
Organization identifier (e.g. org-abc12345)
UC-4 unified protection card (ADR-008). Safe House thresholds + trusted-source policy for a single agent.
off, observe, enforce, enforce_sync, sovereign Show child attributes
Show child attributes
System-managed block describing which scope sources merged into the canonical card. Only returned when ?include_composition=true.
Show child attributes
Template stored and propagated.
UC-4 unified alignment card (ADR-008). Authored in YAML or JSON; composed server-side with platform defaults, org template, and active exemptions before storage.
Show child attributes