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
    Analytics

    Get agent analytics section

    > ## 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.
    
    # Get agent analytics section
    
    > Fetch one analytics section for one agent.
    
    Returns one section of the analytics summary for one agent. The accepted section values are `summary`, `trends`, `knowledge`, `rules`, and `escalations`.
    
    Use this route when you only need part of the analytics payload. Use [Get agent analytics](/en/api-reference/get-agent-analytics) when you need the full summary object. For the analytics endpoint family, see [Analytics](/en/api-reference/analytics).
    
    ## Headers
    
    <ParamField header="Authorization" type="string" required>
      Bearer token containing your Fini workspace API key. Format: `Bearer fini_...` The key needs `read` scope.
    </ParamField>
    
    ## Path parameters
    
    <ParamField path="id" type="string" required>
      Agent ID whose analytics you want to read. Use [List agents](/en/api-reference/list-agents) to get the `botId`.
    </ParamField>
    
    <ParamField path="section" type="string" required>
      Analytics section to return. Accepted values are `summary`, `trends`, `knowledge`, `rules`, and `escalations`.
    </ParamField>
    
    ## Query parameters
    
    <ParamField query="startEpoch" type="number" required>
      Start of the analytics window as a Unix epoch timestamp.
    </ParamField>
    
    <ParamField query="endEpoch" type="number" required>
      End of the analytics window as a Unix epoch timestamp.
    </ParamField>
    
    <ParamField query="source" type="string | string[]">
      Conversation source filter. Pass `all` to include all supported sources, or pass one or more source values accepted by Fini.
    </ParamField>
    
    <ParamField query="channel" type="string | string[]">
      Optional channel filter.
    </ParamField>
    
    <ParamField query="latestStatus" type="string | string[]">
      Optional latest-status filter.
    </ParamField>
    
    <ParamField query="latestSentiment" type="string | string[]">
      Optional latest-sentiment filter.
    </ParamField>
    
    <ParamField query="usedSubfolderIds" type="string | string[]">
      Optional knowledge subfolder IDs to filter by.
    </ParamField>
    
    <ParamField query="tagIds" type="string | string[]">
      Optional tag IDs to filter by.
    </ParamField>
    
    <ParamField query="ruleIds" type="string | string[]">
      Optional rule IDs to filter by.
    </ParamField>
    
    <ParamField query="escalationReasonTagIds" type="string | string[]">
      Optional escalation-reason tag IDs to filter by.
    </ParamField>
    
    <ParamField query="csatRatings" type="number | number[]">
      Optional CSAT ratings to filter by. Values must be integers from `1` through `5`.
    </ParamField>
    
    <ParamField query="timezone" type="string">
      Optional timezone used for date grouping.
    </ParamField>
    
    <RequestExample>
      ~~~bash cURL theme={null}
      curl --request GET \
        --url 'https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-analytics/summary/public?startEpoch=1784073600000&endEpoch=1784678400000&source=all' \
        --header 'Authorization: Bearer fini_your_api_key'
      ~~~
    
      ~~~python Python theme={null}
      import requests
    
      response = requests.get(
          "https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-analytics/summary/public",
          headers={"Authorization": "Bearer fini_your_api_key"},
          params={
              "startEpoch": 1784073600000,
              "endEpoch": 1784678400000,
              "source": "all",
          },
      )
      section = response.json()
      ~~~
    
      ~~~javascript Node.js theme={null}
      const params = new URLSearchParams({
        startEpoch: "1784073600000",
        endEpoch: "1784678400000",
        source: "all",
      });
    
      const response = await fetch(
        `https://api-prod.usefini.com/v2/bots/4f5ef695-d03b-4d56-8fef-7f2bd5c17ef3/hc-analytics/summary/public?${params.toString()}`,
        {
          headers: {
            Authorization: "Bearer fini_your_api_key",
          },
        }
      );
      const section = await response.json();
      ~~~
    </RequestExample>
    
    <ResponseExample>
      ~~~json 200 OK theme={null}
      {
        "id": "escalations",
        "title": "Escalations",
        "value": 223,
        "trend": "down",
        "series": [
          {
            "date": "2026-07-28",
            "value": 12
          }
        ]
      }
      ~~~
    </ResponseExample>
    
    ## Response
    
    Returns a partial analytics summary object for the requested section.
    
    | Section | Included fields |
    | - | - |
    | `summary` | Summary metrics, comparison metrics, summary cards, status breakdown, and usage by channel. |
    | `trends` | Conversation-volume, resolution-rate, response-time, hourly-volume, and CSAT chart data. |
    | `knowledge` | Knowledge usage data. |
    | `rules` | Rule analytics data. |
    | `escalations` | Escalation-reason data. |
    
    See [Get agent analytics](/en/api-reference/get-agent-analytics) for the field-level analytics schema.
    
    ## Errors
    
    <AccordionGroup>
      <Accordion title="400 Bad Request" icon="circle-exclamation">
        The path ID, section, or query parameters are invalid. `startEpoch` and `endEpoch` are required.
      </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 `read` scope required for this route.
      </Accordion>
    
      <Accordion title="406 Not Acceptable" icon="circle-question">
        The agent belongs to a different workspace.
      </Accordion>
    
      <Accordion title="500 Internal Server Error" icon="triangle-exclamation">
        Fini failed while loading analytics.
      </Accordion>
    </AccordionGroup>
    
    
    ## Related topics
    
    - [Get agent analytics](/en/api-reference/get-agent-analytics.md)
    - [Overview](/en/api-reference/analytics.md)
    - [Analytics](/en/analytics.md)
    
    
    This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
    
    Get agent analytics
    Overview
    Powered byThis documentation is built and hosted on Mintlify, a developer documentation platform