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

# Analytics

> Read dashboard analytics and scan frequency timelines

export const ScarfPixel = () => <img referrerPolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=831669b6-b4bd-42cb-8832-2122c03e1d5f" alt="" width="1" height="1" style={{
  position: "absolute",
  width: 0,
  height: 0,
  opacity: 0,
  pointerEvents: "none"
}} />;

<ScarfPixel />

Analytics endpoints expose the same aggregate metrics shown on the dashboard.

## Dashboard overview

A single unified response with everything on the dashboard: KPIs with vs-previous-period deltas, issues-over-time (severity-stacked, split by pentest / PR review source), severity breakdown, open-vs-fixed and MTTR trends, exploitability (KEV / EPSS), top issues and affected assets, CWE distribution, activity heatmap, and PR review metrics (verdict-split reviews over time, findings-addressed rate, top repos and contributors):

```bash theme={null}
curl -X GET "https://app.strix.ai/api/v1/analytics/overview?range=30d" \
  -H "Authorization: Bearer <YOUR_API_TOKEN>"
```

`range` accepts `7d`, `30d`, `90d`, `all`, or `custom` (with `from` and `to` ISO dates). Stock metrics (security score, open issues, severity breakdown, top issues/assets) always reflect the current all-time posture; flow metrics (issues found, PRs reviewed, pentests run) are scoped to the selected window.

**Required scope:** `analytics:read`

## Dashboard stats

Severity/status counts and headline metrics for your organization:

```bash theme={null}
curl -X GET "https://app.strix.ai/api/v1/analytics/stats" \
  -H "Authorization: Bearer <YOUR_API_TOKEN>"
```

**Required scope:** `analytics:read`

## Scan frequency

A timeline of scan activity, useful for charting throughput over time:

```bash theme={null}
curl -X GET "https://app.strix.ai/api/v1/analytics/scan-frequency" \
  -H "Authorization: Bearer <YOUR_API_TOKEN>"
```

**Required scope:** `analytics:read`
