AI Prompt Guard Policy

Return detailed rejection details

Configure the AI Prompt Guard policy to deny messages that match a pattern and return a 403 response with JSON details about the rejection. By default the policy returns a 400 response with a plain-text reason.

Set up the policy

Attach the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!