Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

LOCAL DRAFT PREVIEW. Not published. Pages tagged Draft are new, pages tagged Updated have additions. Yellow 'To confirm' boxes are internal questions.

Fini home pagelight logodark logo
    Documentation
    Use cases
    Trust & pricing
    API reference

    API Setup

    • API overview
    • API contract
    • Static IP Addresses
    • Database and Warehouse Connections
    • MCP Connections

    LLM Access

    • Coding agents
    • Claude Plugin

    Agents

    • Overview
    • POST
      Create agent
    • List agents
    • DEL
      Delete agent

    Analytics

    • Overview
    • Get agent analytics
    • Get agent analytics section

    Prompts

    • Overview
    • Get prompts
    • Get prompt history
    • Get prompt version
    • Update prompts
    • POST
      Create prompt draft version
    • Get prompt draft version
    • Publish prompt draft version
    • DEL
      Delete prompt draft version

    Actions

    • Overview
    • List actions
    • Get action
    • POST
      Create action
    • Update action
    • DEL
      Delete action
    • Test action
    • List agent assignments
    • POST
      Assign to agents

    Attributes

    • Overview
    • List attributes
    • Get attribute
    • POST
      Create attribute
    • Update attribute
    • DEL
      Delete attribute
    • Test attribute
    • List agent assignments
    • POST
      Assign to agents

    External API calls

    • Overview
    • List external API calls
    • Get external API call
    • POST
      Create external API call
    • Update external API call
    • DEL
      Delete external API call
    • Test external API call

    Intent Rules

    • Overview
    • List intent rules
    • Get intent rule
    • Get intent-rule fields context
    • POST
      Generate intent-rule draft with AI
    • POST
      Create intent rule
    • Update intent rule
    • List intent-rule versions
    • Get intent-rule version
    • Publish intent-rule draft
    • Restore intent-rule version as draft
    • DEL
      Delete intent-rule draft version
    • Get rule version test paths
    • Preview rule test paths
    • Run rule version test path
    • Run rule test path from config
    • DEL
      Delete intent rule

    Guardrails

    • Overview
    • List guardrail check types
    • List guardrail policies
    • Get guardrail policy
    • POST
      Create guardrail policy
    • Update guardrail policy
    • DEL
      Delete guardrail policy
    • List guardrail runs
    • Get guardrail hits

    Business Rules

    • Overview
    • List Business Rules
    • Get Business Rule
    • Get Business Rule fields context
    • List default Business Rules
    • POST
      Create Business Rule
    • POST
      Duplicate Business Rule
    • POST
      Evaluate Business Rule
    • Get Business Rule test fields
    • Preview Business Rule test fields
    • Update Business Rule
    • DEL
      Delete Business Rule

    Reply Rules

    • Overview
    • Get reply rules
    • Get reply rule fields context
    • Update reply rule

    Tag groups

    • Overview
    • List tag groups
    • Get tag group
    • POST
      Create tag group
    • Update tag group
    • DEL
      Delete tag group

    Tags

    • Overview
    • Get tag
    • List tags in group
    • List tags across groups
    • POST
      Create tag
    • Update tag
    • DEL
      Delete tag

    Conversations

    • Overview
    • List conversations
    • Get conversation
    • Get event metadata
    • POST
      Generate Answer
    • Send conversation feedback
    • Mark feedback resolved
    • POST
      Add feedback note
    • POST
      Evaluate conversation rule
    • DEL
      Delete conversation
    • DEL
      Bulk delete conversations

    Refine with AI

    • Overview
    • POST
      Create Refine with AI iteration
    • Get active Refine with AI session
    • Get Refine with AI session

    Replays

    • Replays
    • POST
      Create replay
    • List replays
    • Get replay
    • Get replay events

    Test Sets

    • Overview
    • List test sets
    • POST
      Create a test set
    • Get fields context
    • Get a test set
    • Update a test set
    • DEL
      Delete a test set
    • POST
      Add criteria
    • Update a criterion
    • DEL
      Delete a criterion
    • List runs
    • Start a run
    • Get a run

    Knowledge

    Updates

    • Changelog
      Draft
    Guardrails

    Overview

    > ## Documentation Index
    > Fetch the complete documentation index at: https://docs.usefini.com/llms.txt
    > Use this file to discover all available pages before exploring further.
    
    # Overview
    
    > Manage guardrail policies, discover check types, and inspect runs and hit counts.
    
    Guardrail policies belong to an agent and check generated replies before delivery. See [Guardrails](/en/configuration/guardrails) for dashboard setup, rewrite behavior, and fail-open limitations.
    
    Policies are saved directly, not versioned drafts. Creation, updates, and deletion affect live configuration. Workspace API keys require `read` scope for discovery and reports, and `write` scope for mutations.
    
    ## Endpoints
    
    | Method | Endpoint | Scope |
    | - | - | - |
    | `GET` | [List guardrail check types](/en/api-reference/list-guardrail-check-types) | `read` |
    | `GET` | [List guardrail policies](/en/api-reference/list-guardrail-policies) | `read` |
    | `GET` | [Get guardrail policy](/en/api-reference/get-guardrail-policy) | `read` |
    | `POST` | [Create guardrail policy](/en/api-reference/create-guardrail-policy) | `write` |
    | `PUT` | [Update guardrail policy](/en/api-reference/update-guardrail-policy) | `write` |
    | `DELETE` | [Delete guardrail policy](/en/api-reference/delete-guardrail-policy) | `write` |
    | `GET` | [List guardrail runs](/en/api-reference/list-guardrail-runs) | `read` |
    | `GET` | [Get guardrail hits](/en/api-reference/get-guardrail-hits) | `read` |
    
    ## Configuration schemas
    
    The `config` object is validated against `checkType`; unknown configuration keys are rejected. Arrays are limited to 200 items, with each item at most 200 characters. Terms must have at least two characters. Regex patterns are validated for syntax and unsafe repetition.
    
    | Check type | Configuration |
    | - | - |
    | `internal_reasoning_leak` | Optional `additionalTerms` and `additionalPatterns` string arrays. An empty object intentionally uses only built-in checks. |
    | `banned_terms` | Optional `terms` and `patterns` string arrays; at least one term or pattern is required. |
    | `confidential_attributes` | Nonempty `attributeKeys` string array. |
    | `url_allowlist` | Nonempty `allowedDomains` string array of bare domains, without scheme or path. Subdomains are allowed. |
    | `ai_disclosure` | An empty object is the complete configuration; no configurable fields. |
    | `custom` | Required `name` (1 to 120 characters) and `instruction` (1 to 4,000 characters); optional `examples` array with up to 10 entries, each containing `text` (1 to 2,000 characters) and `verdict` (`pass` or `fail`). |
    
    Each non-custom check type can exist once per agent, even when disabled. Up to 10 custom policies can exist per agent.
    
    ## Channel scope
    
    `sources` accepts unique channel names: `ui`, `widget`, `standalone`, `testsuite`, `replay`, `api`, `intercom`, `zendesk`, `salesforce`, `gorgias`, `front`, `hubspot`, `livechat`, `slack`, `discord`, `freshdesk`, `freshchat`, `deskpro`, `microsoft365`, and `email`. Accepted source identifiers do not guarantee that every delivery path is enabled in your workspace.
    
    An omitted or empty array on creation means all channels; responses represent that scope as `null`. On update, omit `sources` to preserve it or send an empty array to clear the restriction. Standalone maps to widget for matching. Dashboard, Test Suite, and replay evaluation bypass channel filtering.
    
    ## Shared response and error behavior
    
    Policy responses include `id`, `companyId`, `botId`, `checkType`, `config`, `enabled`, `sources`, `createdAt`, and `updatedAt`. List endpoints return arrays directly. Run responses redact `originalContent` and `rewriteReason` to `null` for workspace API callers.
    
    Invalid configuration or query values return 400. A missing agent or policy in the authenticated workspace returns 404. Creating a duplicate non-custom type returns 409. Exceeding the custom-policy limit returns 400.
    
    
    ## Related topics
    
    - [Overview](/en/api-reference/tags.md)
    
    
    This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
    
    Delete intent rule
    List guardrail check types
    Powered byThis documentation is built and hosted on Mintlify, a developer documentation platform