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
    Replays

    Replays

    > ## 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.
    
    # Replays
    
    > Create and inspect replay conversations through the public API.
    
    Replays run an existing conversation through a selected agent configuration so you can compare a previous answer with what Fini would do now. Use them after a prompt, knowledge, Rulebook, or model change to verify a known conversation before you roll the change into broader testing.
    
    <Info>
      Replay runs create separate replay conversations. They do not overwrite the original conversation, publish a fix, or apply prompt, knowledge, or rule changes by themselves.
    </Info>
    
    ## Endpoints
    
    | Method | Path | Scope | Purpose |
    | - | - | - | - |
    | `POST` | `/v2/replays/public` | `write` | Create and run a replay from a target Fini response. |
    | `GET` | `/v2/replays/interactions/{interactionId}/public` | `read` | List replay conversations created from one original conversation. |
    | `GET` | `/v2/replays/{id}/public` | `read` | Fetch one replay conversation. |
    | `GET` | `/v2/replays/{id}/events/public` | `read` | Fetch the events for one replay conversation. |
    
    ## Replay modes
    
    <ResponseField name="until" type="string">
      Replays the conversation up to the user event linked to the target response. This is the default mode when `mode` is omitted.
    </ResponseField>
    
    <ResponseField name="single" type="string">
      Replays only the selected response turn.
    </ResponseField>
    
    ## Model overrides
    
    `mlModels` lets you override model selection for one replay run without changing the agent's saved configuration.
    
    <ResponseField name="performPlanning" type="string">
      Model name used for the planning step.
    </ResponseField>
    
    <ResponseField name="searchKnowledge" type="string">
      Model name used for knowledge search.
    </ResponseField>
    
    <ResponseField name="generateAnswer" type="string">
      Model name used for answer generation.
    </ResponseField>
    
    <ResponseField name="tagSelection" type="string">
      Model name used for tag selection.
    </ResponseField>
    
    The API accepts only these four operation keys. If `mlModels` is present, it must contain at least one supported operation and every value must be a non-empty string.
    
    ## Rule execution modes
    
    `ruleExecutionMode` controls how Rulebook logic behaves during the replay. When omitted, Fini uses `simulate`.
    
    <ResponseField name="reuse" type="string">
      Reuses the rule choice and rule result payloads from the original answer. Use this when you want to regenerate answer text without retesting Rulebook selection.
    </ResponseField>
    
    <ResponseField name="simulate" type="string">
      Re-evaluates the latest rules and uses saved historical results for matching external actions. This is the default and avoids performing live external action calls.
    </ResponseField>
    
    <ResponseField name="execute" type="string">
      Re-evaluates the latest rules and runs live external actions. Use this only when those side effects are acceptable for the replay.
    </ResponseField>
    
    If you provide rule-version artifacts, use `simulate` or `execute`. `reuse` cannot be combined with rule-version overrides.
    
    ## Related pages
    
    <CardGroup cols={2}>
      <Card title="Create replay" icon="plus" href="/en/api-reference/create-replay">
        Start a replay for a known Fini response event.
      </Card>
    
      <Card title="List replays" icon="list" href="/en/api-reference/list-replays">
        See every replay created from one original conversation.
      </Card>
    
      <Card title="Get replay" icon="message" href="/en/api-reference/get-replay">
        Fetch the replay conversation record.
      </Card>
    
      <Card title="Get replay events" icon="comments" href="/en/api-reference/get-replay-events">
        Fetch the message events created during the replay.
      </Card>
    </CardGroup>
    
    
    ## Related topics
    
    - [Get replay](/en/api-reference/get-replay.md)
    - [Create replay](/en/api-reference/create-replay.md)
    - [List replays](/en/api-reference/list-replays.md)
    
    
    This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
    
    Get Refine with AI session
    Create replay
    Powered byThis documentation is built and hosted on Mintlify, a developer documentation platform