Skip to main content
POST
/
agents
/
{agent_id}
/
exemptions
Grant an exemption to an agent
curl --request POST \
  --url https://api.mnemom.ai/v1/agents/{agent_id}/exemptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --data '
{
  "reason": "<string>",
  "exempt_patterns": [
    "<string>"
  ],
  "expires_at": "2023-11-07T05:31:56Z"
}
'
{
  "exemption": {
    "id": "<string>",
    "agent_id": "<string>",
    "reason": "<string>",
    "granted_by": "<string>",
    "granted_at": "2023-11-07T05:31:56Z",
    "exempt_patterns": [
      "<string>"
    ],
    "expires_at": "2023-11-07T05:31:56Z"
  },
  "agent_id": "<string>",
  "recomposed": true
}

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Headers

Idempotency-Key
string
required

Path Parameters

agent_id
string
required

Agent identifier (e.g. smolt-abc123)

Body

application/json
exempt_section
enum<string>
required

Template section this exemption relaxes.

Available options:
autonomy.forbidden_actions,
enforcement.forbidden_tools,
autonomy.max_autonomous_value
reason
string
required

Business justification for the exemption (required, ≥20 chars).

Required string length: 20 - 500
exempt_patterns
string[] | null

Specific patterns to exempt within the section. null exempts the entire section.

Maximum array length: 50
Maximum string length: 256
expires_at
string<date-time> | null

Expiry. Omit for default +90 days. null = permanent (explicit opt-in).

Response

Exemption granted; canonical cards recomposed.

exemption
object
required

A single exemption row relaxing an org-template floor for one agent (ADR-008).

agent_id
string
required
recomposed
boolean
required