> For the complete documentation index, see [llms.txt](https://docs.flashback.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flashback.tech/support-reference/platform-api-reference/statistics.md).

# Performance Statistics

This section documents the Flashgate API’s statistics endpoints:

* **Storage statistics** (`/stats/daily`, `/stats/minute`) — daily and minute-level insights into storage activity across buckets and repositories, for tracking storage trends and usage analytics.
* **AI statistics** (`/aistats/daily`, `/aistats/minute`) — daily and minute-level AI/LLM usage metrics (tokens, API calls, policy violations, etc.), with optional filters by repository, user, conversation, model, and more.

{% hint style="info" %}
To perform this operation, you must be authenticated by means of one of the following methods: [BearerAuth](/support-reference/platform-api-reference.md#http-bearer-authentication).
{% endhint %}

## Performance Statistics API Calls <a href="#flashgate-api-nodes" id="flashgate-api-nodes"></a>

| Method                                                   | API Reference                                                                                             | Description                                                                                        |
| -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| <mark style="color:green;">`GET`</mark>`/stats/daily`    | [**get\_\_stats\_daily**](/support-reference/platform-api-reference/statistics/get__stats_daily.md)       | Retrieve daily aggregated statistics for storage activity.                                         |
| <mark style="color:green;">`GET`</mark>`/stats/minute`   | [**get\_\_stats\_minute**](/support-reference/platform-api-reference/statistics/get__stats_minute.md)     | Retrieve high-resolution, minute-level statistics for storage operations.                          |
| <mark style="color:green;">`GET`</mark>`/aistats/daily`  | [**get\_\_aistats\_daily**](/support-reference/platform-api-reference/statistics/get__aistats_daily.md)   | Retrieve daily aggregated AI statistics for LLM usage (tokens, API calls, policy violations).      |
| <mark style="color:green;">`GET`</mark>`/aistats/minute` | [**get\_\_aistats\_minute**](/support-reference/platform-api-reference/statistics/get__aistats_minute.md) | Retrieve minute-level AI statistics for LLM usage. Filter by repo, user, conversation, model, etc. |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.flashback.tech/support-reference/platform-api-reference/statistics.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
