> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alforse.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics

> Cashflow and distribution breakdowns behind the dashboard.

All endpoints require `sensitive_data` (view) and take the same optional query parameter:

<ParamField query="subjectId" type="string">Restrict to one subject company.</ParamField>

| Endpoint                      | Returns                                                                  |
| ----------------------------- | ------------------------------------------------------------------------ |
| `GET /analytics/summary`      | Headline totals — the numbers behind the [Dashboard](/guides/dashboard). |
| `GET /analytics/cashflow`     | Cashflow over time.                                                      |
| `GET /analytics/distribution` | Breakdown by category (e.g. contract type, status, or owner).            |

The `sensitive_data` permission is intentionally separate from `contract_view` — a role can see
individual contracts without being able to see aggregate financial analytics, or vice versa. See
[Roles & Permissions](/concepts/roles-and-permissions).
