ContentFilterEntry - Go SDK

ContentFilterEntry type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

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

Fields

FieldTypeRequiredDescriptionExample
Actioncomponents.ContentFilterAction✔️Action taken when the pattern matchesblock
Labeloptionalnullable.OptionalNullable[string]Optional label used in redaction placeholders or error messages[API_KEY]
Patternstring✔️A regex pattern to match against request content\b(sk-[a-zA-Z0-9]{48})\b