Background
Until the Sunny Seal release, the platform included a built-in Analytics page.This page allowed customers to track metrics such as:
- request volume,
- user satisfaction,
- overall usage statistics.
New Strategy: Flexibility through the API
Instead of enforcing a generic interface, we shifted to a more flexible approach.Now, usage tracking is enabled through a series of API endpoints that expose raw data. This choice has two main benefits:
- Total flexibility – each customer can build dashboards and reports tailored to their needs.
- Easy integration – data can be plugged directly into existing systems (BI tools, CRM, internal monitoring, etc.).
Available Endpoints
The following endpoints are available for reporting:- Get Chat Sessions Report
- Get Chat Feedbacks Report
- Get Tools Report
- Get Used Documents Report
- Get User Activities Report
How to Use the Endpoints
Authentication
Each request requires an API token passed as a Bearer token in the header:Common Parameters
start_date
(required): start date inYYYY-MM-DD
format.end_date
(optional): end date, defaults to today.- Depending on the endpoint, additional filters may be available (e.g., user ID, model ID).
Example: Get Chat Sessions Report
cURL
Python
Example JSON Response
Example Use Cases
- BI dashboards: integrate with PowerBI, Looker, or Tableau to track adoption.
- Internal alerts: trigger notifications (e.g., threshold exceeded).
- Product insights: monitor which tools or documents are most used.
FAQ
What filters are available?
All endpoints support date filters, and some accept additional filters (e.g., user ID, document ID). See the API reference for details.How often can I call the API?
You can query as often as needed, but we recommend aggregating data daily or weekly to reduce load.Do you still provide a built-in reporting interface?
No. Our strategy is API-only for maximum flexibility and scalability.Can I combine multiple endpoints?
Yes. For example:- Sessions + Feedbacks = adoption & satisfaction tracking.
- Documents + Tools = resource usage monitoring.