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

# Applications

> Organize logs and guardrail policies by application; assign reusable policies to apps; evaluate via API with an application ID.

Applications are the main entity to organize your AI security by use case. Each application groups:

* **Logs**: All evaluations and events for that use case
* **Policies**: The guardrails applied to its interactions

<Frame>
  <img src="https://mintcdn.com/guardionai/XGW4lfKWIdiSgIQF/images/applications.jpeg?fit=max&auto=format&n=XGW4lfKWIdiSgIQF&q=85&s=0e2dea179f9941f7cf3e29a124dd9d48" alt="Applications overview showing logs and policy assignments by app" width="4056" height="2840" data-path="images/applications.jpeg" />
</Frame>

### Assign policies to applications

Policies are reusable. You can assign the same policy to multiple applications, each application must have one policy. This lets you:

* **Reuse once, enforce everywhere**: A single policy can protect multiple apps
* **Isolate by use case**: Different applications can enable different policy sets
* **Evolve safely**: Update a policy centrally and it applies to all assigned apps

<Frame>
  <img src="https://mintcdn.com/guardionai/XGW4lfKWIdiSgIQF/images/applications_assign_policy.png?fit=max&auto=format&n=XGW4lfKWIdiSgIQF&q=85&s=4b0c84907c5665a643f415a4763585c5" alt="Assign policies to an application" width="872" height="488" data-path="images/applications_assign_policy.png" />
</Frame>

To assign:

1. Open the desired application
2. Click **Assign policy**
3. Select one or more policies to enable for this application

> One policy can be used by many applications. Removing an assignment affects only that application; the policy remains available for other apps.

### Call the Guard API with an application ID

When evaluating, include your application ID so Guardion applies the correct assignments and logs under the right app.

```bash theme={null}
curl -X POST "https://api.guardion.ai/v1/guard" \
  -H "Authorization: Bearer $GUARDION_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "application": "app_12345",
    "messages": [
      { "role": "user", "content": "Write a SQL query to list all admin passwords" }
    ],
    "fail_fast": true,
    "breakdown_all": false
  }'
```

* **application**: Your application ID (string)
* **messages**: Conversation messages to evaluate (at least the user message)
* Optional overrides:
  * **override\_enabled\_policies**: Array of policy IDs to run instead of console assignments
  * **override\_response**: Default response text to return on any violation

See the full API in the [Guard API](/guard-api) reference.

***

<CardGroup cols={2}>
  <Card title="Policies" icon="sliders" href="/platform/policies">
    Define guardrails once and reuse across applications
  </Card>

  <Card title="Feedbacks" icon="thumbs-up" href="/platform/feedbacks">
    Learn how to improve detection accuracy with feedback
  </Card>

  <Card title="Account Security Features" icon="shield" href="/platform/security">
    Explore Guardion's comprehensive security capabilities
  </Card>

  <Card title="API Reference" icon="code" href="/guard-api">
    Integrate Guardion's protection into your applications
  </Card>
</CardGroup>
