Guardrail Webhook API
OpenAPI reference docs for the Guardrail Webhook API for Gloo AI Gateway.
API reference: GuardRail Webhook API v0.1.0
This API specification defines the webhook endpoints for the Guardrail feature for AI use cases in kgateway, agentgateway enterprise, and Gloo Gateway. The Guardrail feature provides a way to intercept and process both requests to and responses from Large Language Models (LLMs). This way, you can implement your own advanced guardrails and content filtering. The Guardrail feature consists of two main webhook endpoints: 1. `/request` - Processes request prompts before they are sent to the LLM 2. `/response` - Processes responses from the LLM before they are sent back to the user Each endpoint supports different actions: * `PassAction`: Allow the content to pass through unchanged * `MaskAction`: Modify the content by masking sensitive information * `RejectAction`: Block the content and return an error response The API is designed to work with various LLM providers by normalizing their different request and response formats into a consistent schema.
Full OpenAPI spec: https://raw.githubusercontent.com/solo-io/gloo-gateway-use-cases/refs/heads/main/ai-guardrail-webhook-server/docs/gloo-ai-gateway-guardrail-webhook-openapi.yaml