Protection

Scaffold protection from a description

Calls an LLM (Claude Haiku by default; opt into Sonnet via model: "sonnet") with the catalog and tools-registry context, returns a YAML manifest scaffold + care-framed reasoning prose + suggested catalog entries + coverage gaps. Never auto-commits — the caller reviews and edits before PUT. Cached by (model + scope + description + hints) hash; 24-hour TTL.

post/protection/scaffold

Request

  • Base URL: https://api.mnemom.ai/v1
  • URL: https://api.mnemom.ai/v1/protection/scaffold
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Mnemom-Api-Key
    • API key in cookie mnemom_session

Request body

descriptionstring required

Free-form description of the agent / scope. Untrusted input — the system prompt instructs the model not to follow embedded directives.

scope'platform' | 'org' | 'team' | 'agent'

Hint to the model about which scope the manifest will live at.

hintsobject

Free-form key/value hints (industry, risk_appetite, existing_tools, etc).

model'haiku' | 'sonnet'

Claude model to invoke. haiku is the default; sonnet for prose-heavy reasoning.

Response

Scaffold ready. Editable; never auto-commits.

oktrue required
resource'protection' required
manifeststring required

YAML body of the scaffolded manifest.

reasoningstring required

Care-framed prose explanation.

suggested_catalog_entriesstring[]
parse_warningsstring[]
cachedboolean required

True when the response was served from the description-hash cache.

modelstring required

Claude model id used for the call.

Changes

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