> ## Documentation Index
> Fetch the complete documentation index at: https://openrouter-d02e98a0-mintlify-5b6e02fd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ContentFilterEntry - Python SDK

> ContentFilterEntry method reference

<Warning>
  The Python SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/python-sdk/issues).
</Warning>

A custom regex content filter that scans request messages for matching patterns.

## Fields

| Field     | Type                                                                                               | Required             | Description                                                     | Example                     |
| --------- | -------------------------------------------------------------------------------------------------- | -------------------- | --------------------------------------------------------------- | --------------------------- |
| `action`  | [components.ContentFilterAction](/client-sdks/python/api-reference/components/contentfilteraction) | :heavy\_check\_mark: | Action taken when the pattern matches                           | block                       |
| `label`   | *OptionalNullable\[str]*                                                                           | :heavy\_minus\_sign: | Optional label used in redaction placeholders or error messages | \[API\_KEY]                 |
| `pattern` | *str*                                                                                              | :heavy\_check\_mark: | A regex pattern to match against request content                | \b(sk-\[a-zA-Z0-9]`{48}`)\b |
