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
    External API calls

    Test external API call

    > ## 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.
    
    # Test external API call
    
    > Test one external API call without saving.
    
    Runs a single HTTP call and returns the raw response, without persisting anything. Pass a saved step's `id` to test it as stored, or send the request fields inline to try a call before saving.
    
    ## Headers
    
    <ParamField header="Authorization" type="string" required>
      Bearer token containing your Fini workspace API key. Format: `Bearer fini_...` The key needs `write` scope.
    </ParamField>
    
    <ParamField header="Content-Type" type="string" required>
      `application/json`
    </ParamField>
    
    ## Body parameters
    
    <ParamField body="id" type="string">
      Optional saved external API call step ID. When set, the stored URL, method, headers, and body are used, with any inline fields below overriding them. Stored secrets are resolved for the call.
    </ParamField>
    
    <ParamField body="requestUrl" type="string">
      Request URL. Required when `id` is omitted.
    </ParamField>
    
    <ParamField body="requestMethod" type="string">
      HTTP verb. Required when `id` is omitted.
    </ParamField>
    
    <ParamField body="requestHeaders" type="object">
      Optional request headers.
    </ParamField>
    
    <ParamField body="requestBody" type="object">
      Optional request body.
    </ParamField>
    
    <ParamField body="variables" type="object">
      Optional values used to resolve `${fieldName}` tokens in the URL, headers, and body.
    </ParamField>
    
    ## Response
    
    Returns a [`Data Step test-run result`](/en/api-reference/actions-and-attributes#data-step-test-run-result): `success`, `statusCode`, `responseBody`, and `error` when the call failed.
    
    <RequestExample>
      ~~~bash cURL theme={null}
      curl --request POST \
        --url 'https://api-prod.usefini.com/v2/api-function-configs/test-run/public' \
        --header 'Authorization: Bearer fini_your_api_key' \
        --header 'Content-Type: application/json' \
        --data '{
        "id": "4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3",
        "requestUrl": "https://help.example.com/refunds",
        "requestMethod": "GET",
        "requestHeaders": {
          "name": "Example",
          "value": "message"
        },
        "requestBody": {
          "name": "Example",
          "value": "message"
        },
        "variables": {
          "name": "Example",
          "value": "message"
        }
      }'
      ~~~
    
      ~~~javascript Node.js theme={null}
      const response = await fetch('https://api-prod.usefini.com/v2/api-function-configs/test-run/public', {
        method: 'POST',
        headers: {
          Authorization: 'Bearer fini_your_api_key',
          'Content-Type': 'application/json'
        },
        body: JSON.stringify({
        'id': '4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3',
        'requestUrl': 'https://help.example.com/refunds',
        'requestMethod': 'GET',
        'requestHeaders': {
          'name': 'Example',
          'value': 'message'
        },
        'requestBody': {
          'name': 'Example',
          'value': 'message'
        },
        'variables': {
          'name': 'Example',
          'value': 'message'
        }
      }
        )
      });
    
      const data = await response.json();
      ~~~
    
      ~~~python Python theme={null}
      import requests
    
      response = requests.post(
          "https://api-prod.usefini.com/v2/api-function-configs/test-run/public",
          headers={"Authorization": "Bearer fini_your_api_key", "Content-Type": "application/json"},
          json={
          "id": "4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3",
          "requestUrl": "https://help.example.com/refunds",
          "requestMethod": "GET",
          "requestHeaders": {
              "name": "Example",
              "value": "message"
          },
          "requestBody": {
              "name": "Example",
              "value": "message"
          },
          "variables": {
              "name": "Example",
              "value": "message"
          }
      },
      )
    
      data = response.json()
      ~~~
    </RequestExample>
    
    <ResponseExample>
      ~~~json 200 OK theme={null}
      {
        "success": true,
        "response": {
          "plan": "Enterprise",
          "status": "active"
        },
        "savedFields": {
          "plan": "Enterprise",
          "status": "active"
        }
      }
      ~~~
    </ResponseExample>
    
    ## Errors
    
    <AccordionGroup>
      <Accordion title="400 Bad Request" icon="circle-exclamation">
        The body is malformed, or `requestUrl` / `requestMethod` is missing when no `id` is provided.
      </Accordion>
    
      <Accordion title="401 Unauthorized" icon="lock">
        The API key is missing, malformed, revoked, or invalid.
      </Accordion>
    
      <Accordion title="403 Forbidden" icon="shield-halved">
        The API key does not include the `write` scope required for this route.
      </Accordion>
    </AccordionGroup>
    
    
    ## Related topics
    
    - [Overview](/en/api-reference/actions-and-attributes.md)
    - [API overview](/en/api-reference/overview.md)
    - [Update external API call](/en/api-reference/update-data-step.md)
    
    
    This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
    
    Delete external API call
    Overview
    Powered byThis documentation is built and hosted on Mintlify, a developer documentation platform