---
title: "Get the AI policy for a connection"
method: GET
path: "/v1/ai/policies/{connection}"
tags: ["AI"]
---

# Get the AI policy for a connection

`GET /v1/ai/policies/{connection}`

## Request

- Base URL: `https://www.chatrail.dev`
- URL: `https://www.chatrail.dev/v1/ai/policies/{connection}`
- Auth: HTTP bearer

Absent policy means AI is off for that connection, which is the default.

## Path parameters

- `connection` string, required

## Response `200`

The policy.

## Other responses

- `404`: No policy is set.

---

[API](https://skmtc.dev/chatrail/apis/chatrail-api.md) · [All operations](https://skmtc.dev/chatrail/apis/chatrail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/chatrail/apis/chatrail-api/revisions/acc5b88c6f59?raw)
