---
title: "Suggest Policy Templates"
method: POST
path: "/policy/templates/suggest"
tags: ["policies"]
---

# Suggest Policy Templates

`POST /policy/templates/suggest`

Use AI to suggest policy templates based on attack examples and descriptions.

Calls an LLM with tool calling to match user requirements to available templates.

## Request body

- SuggestTemplatesRequest
  - `attack_examples` string[]
  - `description` string
  - `model` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-19** `c357baf422ab` — 2 info
  - api tag `policies` added
  - api tag `policy management` removed
- **2026-09-18** `082b5fabd909` — 4 info
  - api tag `policy management` added
  - api tag `policies` removed
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/policy/templates/suggest/post.md)

---

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