> ## Documentation Index
> Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Aporia

[Aporia](https://www.aporia.com/) provides state-of-the-art Guardrails for any AI workload. With Aporia, you can setup powerful, multimodal AI Guardrails and just add your Project ID to Prisma AIRS AI Gateway to enable them for your AI Gateway requests.

Aporia supports Guardrails for `Prompt Injections`, `Prompt Leakage`, `SQL Enforcement`, `Data Leakage`, `PII Leakage`, `Profanity Detection`, and many more!

Browse Aporia's docs for more info on each of the Guardrail:

<Card title="Quickstart - AporiaAporia" href="https://gr-docs.aporia.com/get-started/quickstart">
  Learn more about Aporia AI and their offerings.
</Card>

## Using Aporia with the AI Gateway

### 1. Add Aporia API Key to the AI Gateway

* Navigate to the `Integrations` page under `Settings`
* Click on the edit button for the Aporia integration and add your API key

### 2. Add Aporia's Guardrail Check

* Now, navigate to the `Guardrails` page
* Search for `Validate - Project` Guardrail Check and click on `Add`
* Input your corresponding Aporia Project ID where you are defining the policies
* Save the check, set any actions you want on the check, and create the Guardrail!

| Check Name          | Description                                                                         | Parameters         | Supported Hooks                      |
| :------------------ | :---------------------------------------------------------------------------------- | :----------------- | :----------------------------------- |
| Validate - Projects | Runs a project containing policies set in Aporia and returns a PASS or FAIL verdict | Project ID: string | beforeRequestHooks afterRequestHooks |

Your Aporia Guardrail is now ready to be added to any AI Gateway request you'd like!

### 3. Add Guardrail ID to a Config and Make Your Request

* When you save a Guardrail, you'll get an associated Guardrail ID - add this ID to the `before_request_hooks` or `after_request_hooks` params in your AI Gateway Config
* Save this Config and pass it along with any AI Gateway request you're making!

Your requests are now guarded by your Aporia policies and you can see the Verdict and any action you take directly on AI Gateway logs! More detailed logs for your requests will also be available on your Aporia dashboard.

***


## Related topics

- [List of Guardrail Checks](/docs/aigw/product/guardrails/list-of-guardrail-checks.md)
- [Guardrails](/docs/aigw/product/guardrails.md)
- [Overview](/docs/aigw/integrations/overview.md)
- [Update guardrail](/docs/aigw/api-reference/guardrails/update-guardrail.md)
- [Update org guardrail](/docs/aigw/api-reference/org-guardrails/update-org-guardrail.md)
