Skip to main content

Parameters

See plugin common configurations for configuration options available to all plugins.

  • match_all_roles

    boolean


    default: false


    If true, validate messages from all roles. If false, validate the message from user role only.

  • match_all_conversation_history

    boolean


    default: false


    If true, concatenate and check all messages in the conversation history. If false, only check the content of the last message.

  • allow_patterns

    array[string]


    An array of RegEx patterns that messages should match. When configured, messages must match at least one pattern to be considered valid.

  • deny_patterns

    array[string]


    An array of RegEx patterns that messages should not match. If messages match any of the patterns, the request should be rejected.

    If both allow_patterns and deny_patterns are configured, the plugin first ensures that at least one allow_patterns is matched.

API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2025. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation