---
title: "Generate a trust-rule suggestion"
method: POST
path: "/v1/trust-rules/suggest"
tags: ["trust-rules"]
---

# Generate a trust-rule suggestion

`POST /v1/trust-rules/suggest`

## Request

- Base URL: `` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/trust-rules/suggest`
- Auth: none declared

LLM-backed suggestion for a rule matching the given tool invocation. Returns 503 when the daemon suggestion relay is unavailable.

## Request body

- object
  - `tool` string, required
  - `command` string, required
  - `riskAssessment` object, required
    - `risk` string, required
    - `reasoning` string, required
    - `reasonDescription` string, required
  - `scopeOptions` object[], required
    - `pattern` string, required
    - `label` string, required
  - `directoryScopeOptions` object[]
    - `scope` string, required
    - `label` string, required
  - `intent` 'auto_approve' | 'escalate', required
  - `existingRule` object
    - `id` string, required
    - `pattern` string, required
    - `risk` string, required

## Response `200`

Successful response

- object
  - `suggestion` object, required
    - `pattern` string, required
    - `risk` string, required
    - `scope` string, nullable, required
    - `description` string, required
    - `scopeOptions` object[], required
      - `pattern` string, required
      - `label` string, required
    - `directoryScopeOptions` object[], nullable
      - `scope` string, required
      - `label` string, required

## Changes

- **2026-07-06** `f6ef510612fb`: 1 info
  - endpoint added
- **2026-06-15** `8aa43f77a604`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/vellum-ai/apis/vellum-gateway-api/changes/v1/trust-rules/suggest/post.md)

---

[API](https://skmtc.dev/vellum-ai/apis/vellum-gateway-api.md) - [All operations](https://skmtc.dev/vellum-ai/apis/vellum-gateway-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vellum-ai/apis/vellum-gateway-api/revisions/48d611686235?raw)
