> 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](https://docs.flashback.tech/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**](https://docs.flashback.tech/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**](https://docs.flashback.tech/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**](https://docs.flashback.tech/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**](https://docs.flashback.tech/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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
