Agents

Grant an exemption to an agent

Requires org owner or admin of the agent's org. Personal agents (no org) cannot have exemptions and receive 400. Reason is required (20–500 chars). expires_at defaults to +90 days if omitted; pass null for permanent (opt-in only). Requires Idempotency-Key. Emits a agent.exemption.granted webhook and writes a governance audit row. Triggers a recompose of the agent's canonical cards. See ADR-008.

post/agents/{agent_id}/exemptions

Request

  • Base URL: https://api.mnemom.ai/v1
  • URL: https://api.mnemom.ai/v1/agents/{agent_id}/exemptions
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Mnemom-Api-Key
    • API key in cookie mnemom_session

Path parameters

agent_idstring required

Agent identifier (e.g. smolt-abc123)

Headers

Idempotency-Keystring required

Request body

exempt_section'autonomy.forbidden_actions' | 'enforcement.forbidden_tools' | 'autonomy.max_autonomous_value' required

Template section this exemption relaxes.

exempt_patternsstring[] nullable

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

reasonstring required

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

expires_atstring date-time nullable

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

Response

Exemption granted; canonical cards recomposed.

agent_idstring required
recomposedboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.