> ## Documentation Index
> Fetch the complete documentation index at: https://portkey-docs-mintlify-add-terraform-provider-docs-72855.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List of Guardrail Checks

Each Guardrail Check has a specific purpose, it's own parameters, supported hooks, and sources.

## Partner Guardrails

<CardGroup cols={3}>
  <Card title="Acuvity" href="/integrations/guardrails/acuvity" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/IaH-e_OUk4WwW23Y/images/product/Guardrails/Acuvity.jpg?fit=max&auto=format&n=IaH-e_OUk4WwW23Y&q=85&s=a62e81472bb730539352e5abb0fb960b" width="798" height="549" data-path="images/product/Guardrails/Acuvity.jpg">
    * Scan prompts and responses for security threats \* Detect PII, toxicity,
      and prompt injections \* Real-time content analysis and filtering
  </Card>

  <Card title="Aporia" href="/integrations/guardrails/aporia" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/IaH-e_OUk4WwW23Y/images/product/Guardrails/Aporia.jpg?fit=max&auto=format&n=IaH-e_OUk4WwW23Y&q=85&s=aeefea099d54b57a88b47de1c908248d" width="798" height="549" data-path="images/product/Guardrails/Aporia.jpg">
    * Validate custom Aporia policies via project ID \* Define policies on your
      Aporia dashboard \* Seamless integration with Portkey checks
  </Card>

  <Card title="AWS Bedrock" href="/integrations/guardrails/bedrock-guardrails" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/IaH-e_OUk4WwW23Y/images/product/Guardrails/Bedrock.jpg?fit=max&auto=format&n=IaH-e_OUk4WwW23Y&q=85&s=d46afec435c234245c7b2fd085321f78" width="798" height="549" data-path="images/product/Guardrails/Bedrock.jpg">
    * Analyze and redact PII to prevent manipulation \* Integrate AWS Guardrails
      directly in Portkey \* Advanced security policy enforcement
  </Card>

  <Card title="Azure" href="/integrations/guardrails/azure-guardrails" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/IaH-e_OUk4WwW23Y/images/product/Guardrails/Azure.jpg?fit=max&auto=format&n=IaH-e_OUk4WwW23Y&q=85&s=b68cff9aa6303766042800d9594033e7" alt="Azure OpenAI" width="798" height="549" data-path="images/product/Guardrails/Azure.jpg">
    * Detect and redact sensitive PII data \* Apply Azure's comprehensive content
      safety checks \* Enterprise-grade security compliance
  </Card>

  <Card title="Javelin" href="/integrations/guardrails/javelin" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/Eu2vUGmkwROgfsEU/images/product/Guardrails/Javelin.png?fit=max&auto=format&n=Eu2vUGmkwROgfsEU&q=85&s=6a483734df85ef1bd38e05877fa06cbc" width="798" height="549" data-path="images/product/Guardrails/Javelin.png">
    * Platform to secure your entire AI journey, with visibility at every step,
      protection against emerging AI threats across GenAI, Agents & MCPs, and the
      confidence to innovate at scale
  </Card>

  <Card title="Lasso Security" href="/integrations/guardrails/lasso" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/Eu2vUGmkwROgfsEU/images/product/Guardrails/Lasso.jpg?fit=max&auto=format&n=Eu2vUGmkwROgfsEU&q=85&s=dfef3b0a1d5a2dd86a9dd023a33735db" width="798" height="549" data-path="images/product/Guardrails/Lasso.jpg">
    * Analyze content for security risks and jailbreaks \* Enforce custom policy
      violations detection \* AI-powered threat detection and prevention
  </Card>

  <Card title="Mistral" href="/integrations/guardrails/mistral" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/Eu2vUGmkwROgfsEU/images/product/Guardrails/Mistral-AI.jpg?fit=max&auto=format&n=Eu2vUGmkwROgfsEU&q=85&s=93a5d73861f833ce657af2dbd885152f" width="798" height="549" data-path="images/product/Guardrails/Mistral-AI.jpg">
    * Detect and filter harmful content automatically \* Multi-dimensional
      content safety analysis \* Real-time moderation capabilities
  </Card>

  <Card title="Pangea" href="/integrations/guardrails/pangea" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/Eu2vUGmkwROgfsEU/images/product/Guardrails/Pangea.jpg?fit=max&auto=format&n=Eu2vUGmkwROgfsEU&q=85&s=a409b89e811d8f1ec6a33b1fc3ced7c7" width="798" height="549" data-path="images/product/Guardrails/Pangea.jpg">
    * Guard LLM inputs and outputs with Text Guard \* Detect malicious content
      and data transfers \* Prevent model manipulation attempts
  </Card>

  <Card title="Palo Alto Networks Prisma AIRS" href="/integrations/guardrails/palo-alto-panw-prisma" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/Eu2vUGmkwROgfsEU/images/product/Guardrails/prisma.png?fit=max&auto=format&n=Eu2vUGmkwROgfsEU&q=85&s=1843179b569af276f9d61b6429e03713" alt="PRISMA" width="636" height="588" data-path="images/product/Guardrails/prisma.png">
    * Real-time threat detection across all OSI layers (1-7) \* Block prompt
      injections, data leakage, and model DoS attacks
  </Card>

  <Card title="Patronus" href="/integrations/guardrails/patronus-ai" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/Eu2vUGmkwROgfsEU/images/product/Guardrails/Patronus.jpg?fit=max&auto=format&n=Eu2vUGmkwROgfsEU&q=85&s=13b037ca4848948e681e745a2a7189c7" width="798" height="549" data-path="images/product/Guardrails/Patronus.jpg">
    * Detect hallucinations and factual errors \* Assess quality: conciseness,
      helpfulness, tone \* Identify gender and racial bias in outputs
  </Card>

  <Card title="Pillar" href="/integrations/guardrails/pillar" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/Eu2vUGmkwROgfsEU/images/product/Guardrails/Pillar.jpg?fit=max&auto=format&n=Eu2vUGmkwROgfsEU&q=85&s=c22afd8799a2c099fda1a8834fa42223" width="798" height="549" data-path="images/product/Guardrails/Pillar.jpg">
    * Scan prompts and responses comprehensively \* Detect PII, toxicity, and
      injection attacks \* Enterprise security and compliance features
  </Card>

  <Card title="Prompt Security" href="/integrations/guardrails/prompt-security" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/Eu2vUGmkwROgfsEU/images/product/Guardrails/PromptSecurity.jpg?fit=max&auto=format&n=Eu2vUGmkwROgfsEU&q=85&s=71b726f444c639624589762511db0b79" width="798" height="549" data-path="images/product/Guardrails/PromptSecurity.jpg">
    * Scan prompts for security vulnerabilities \* Analyze responses for policy
      violations \* Advanced threat detection and mitigation
  </Card>

  <Card title="Qualifire" href="/integrations/guardrails/qualifire" img="https://mintcdn.com/portkey-docs-mintlify-add-terraform-provider-docs-72855/Eu2vUGmkwROgfsEU/images/product/Guardrails/Qualifire.png?fit=max&auto=format&n=Eu2vUGmkwROgfsEU&q=85&s=fe73cb531d06ccff9327209cda496f60" width="960" height="540" data-path="images/product/Guardrails/Qualifire.png">
    * Best in class evaluation and guardrails for agents, RAG and chat bots.
      Detect and mitigate hallucinations, grounding issues, and any custom
      policies.
  </Card>
</CardGroup>

The logic for all of the Guardrail Checks (including Partner Guardrails) is open source.

<Info>
  View it
  [here](https://github.com/Portkey-AI/gateway/tree/feat/plugins/plugins/default)
  and
  [here](https://github.com/Portkey-AI/gateway/tree/feat/plugins/plugins/portkey)
  on the Portkey Gateway repo.
</Info>

## Bring Your Own Guardrail

We have built Guardrails in a very modular way, and support bringing your own Guardrail using a custom webhook! [Learn more here](/integrations/guardrails/bring-your-own-guardrails).

## Portkey's Guardrails

Along with the partner Guardrails, there are also deterministic as well as LLM-based Guardrails supported natively by Portkey.

<Note>
  `BASIC` Guardrails are available on all Portkey plans.

  <br />

  <br />

  `PRO` Guardrails are available on Portkey Pro & Enterprise plans.
</Note>

### `BASIC` — Deterministic Guardrails

<CardGroup cols={2}>
  <Card title="Regex Match">
    <br />

    Checks if the request or response text matches a regex pattern.<br /><br />
    **Parameters**: rule: `string`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Sentence Count">
    <br />

    Checks if the content contains a certain number of sentences. Ranges allowed.<br /><br />
    **Parameters**: minSentences: `number`, maxSentences: `number`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Word Count">
    <br />

    Checks if the content contains a certain number of words. Ranges allowed.<br /><br />
    **Parameters**: minWords: `number`, maxWords: `number`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Character Count">
    <br />

    Checks if the content contains a certain number of characters. Ranges allowed.<br /><br />
    **Parameters**: minCharacters: `number`, maxCharacters: `number`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="JSON Schema">
    <br />

    Check if the response JSON matches a JSON schema.<br /><br />
    **Parameters**: schema: `json`<br />
    **Supported On**: `output_guardrails` only
  </Card>

  <Card title="JSON Keys">
    <br />

    Check if the response JSON contains any, all or none of the mentioned keys.<br /><br />
    **Parameters**: keys: `array`, operator: `string`<br />
    **Supported On**: `output_guardrails` only
  </Card>

  <Card title="Contains">
    <br />

    Checks if the content contains any, all or none of the words or phrases.<br /><br />
    **Parameters**: words: `array`, operator: `string`<br />
    **Supported On**: `output_guardrails` only
  </Card>

  <Card title="Valid URLs">
    <br />

    Checks if all the URLs mentioned in the content are valid<br /><br />
    **Parameters**: onlyDNS: `boolean`<br />
    **Supported On**: `output_guardrails` only
  </Card>

  <Card title="Contains Code">
    <br />

    Checks if the content contains code of format SQL, Python, TypeScript, etc.<br /><br />
    **Parameters**: format: `string`<br />
    **Supported On**: `output_guardrails` only
  </Card>

  <Card title="Lowercase Detection">
    <br />

    Check if the given string is lowercase or not.<br /><br />
    **Parameters**: format: `string`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Ends With">
    <br />

    Check if the content ends with a specified string.<br /><br />
    **Parameters**: Suffix: `string`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Webhook">
    <br />

    Makes a webhook request for custom guardrails<br /><br />
    **Parameters**: webhookURL: `string`, headers: `json`<br />
    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="JWT Token Validator">
    <br />

    Check if the JWT token is valid using JWKS signature verification or token introspection.

    <br />

    **Validation Methods**:

    * JWKS-based validation (via URI or inline JSON)
    * Token introspection (RFC 7662)

    **Parameters**:
    JWKS URI: `string`,
    JWKS: `object`,
    Introspect Endpoint: `string`,
    Introspect Content Type: `string`,
    Introspect Cache Max Age: `number`,
    Header Key: `string`,
    Cache Max Age: `number`,
    Clock Tolerance: `number`,
    Max Token Age: `string`,
    Required Claims: `array`,
    Claim Values: `object`,
    Header Payload Match: `array`,
    Extract Claims: `array`,
    Claim Prefix: `string`

    **Supported On**: `input_guardrails`
  </Card>

  <Card title="Model Whitelist">
    <br />

    Check if the inference model to be used is in the whitelist.

    <br />

    **Parameters**:
    Models: `array`, Inverse: `boolean`

    **Supported On**: `input_guardrails`
  </Card>
</CardGroup>

### `PRO` — LLM Guardrails

<CardGroup cols={2}>
  <Card title="Moderate Content">
    <br />

    Checks if the content passes the mentioned content moderation checks.

    <br />

    <br />

    **Parameters**: categories: `array`

    <br />

    **Supported On**: `input_guardrails` only
  </Card>

  <Card title="Check Language">
    <br />

    Checks if the response content is in the mentioned language.

    <br />

    <br />

    **Parameters**: language: `string`

    <br />

    **Supported On**: `input_guardrails` only
  </Card>

  <Card title="Detect PII">
    <br />

    Detects Personally Identifiable Information (PII) in the content.

    <br />

    <br />

    **Parameters**: categories: `array`

    <br />

    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>

  <Card title="Detect Gibberish">
    <br />

    Detects if the content is gibberish.

    <br />

    <br />

    **Parameters**: `boolean`

    <br />

    **Supported On**: `input_guardrails`, `output_guardrails`
  </Card>
</CardGroup>

<Note>
  You can now have configurable timeouts for Partner & Pro Guardrails!
</Note>

## Contribute Your Guardrail

Integrate your Guardrail platform with Portkey Gateway and reach our growing user base.
Check out some [existing integrations](https://github.com/portkey-ai/gateway) to get started.
