---
title: "Set Capture Policy"
method: PUT
path: "/v1/capture-policy"
tags: ["System"]
---

# Set Capture Policy

`PUT /v1/capture-policy`

## Request

- Base URL: `https://mengram.io` (the document declares no server; this is the origin it was published from)
- URL: `https://mengram.io/v1/capture-policy`
- Auth: none declared. Required headers: `authorization`

Set the capture boundary. Applied deterministically before any
extracted memory is persisted — facts, episodes, and procedures
matching a deny rule are dropped, never written. Enforced server-side,
not a prompt asking the model to behave.

## Headers

- `authorization` string, required

## Request body

- CapturePolicyRequest
  - `deny_categories` string[], nullable
  - `deny_keywords` string[], nullable
  - `deny_sources` string[], nullable
  - `allow_sources` string[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengram/apis/mengram-api.md) · [All operations](https://skmtc.dev/mengram/apis/mengram-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mengram/apis/mengram-api/revisions/f871fd1fd3a8?raw)
