Build custom reports

When the App dashboard doesn't have the metric your team cares about, the analytics API hands back the same pre-aggregated rollups the dashboard is built on. Wire them into your existing BI tool, ops alerting, or weekly report.

What the analytics API exposes

Every endpoint returns JSON in a shape designed to load into a BI tool without further reshaping. See the analytics API reference for fields, types, and pagination.

Authenticate with a personal access token

Custom-report pipelines don't run in the App, so they need a non-interactive credential. Mint a personal access token in the App's API explorer and scope it to read-only access on the analytics endpoints. See Create a personal access token and Scope a token for the steps.

Token scope, in plain language for this use case:

Pull a daily summary

A minimal end-to-end pull, using curl:

curl -H "Authorization: Bearer $AIRBRX_PAT" \
  "https://api.airbrx.ai/analytics/tenants/<tenant-id>/daily?from=2026-04-01&to=2026-04-30"

The response is a JSON array, one object per day in the range. Each object carries the cache outcome counts and the estimated savings field that powers the App's savings tile.

Load into a BI tool

The analytics endpoints return small payloads compared to warehouse extracts — a year of daily data fits comfortably in memory. Two practical patterns:

Alerting examples

What's not on the analytics API

Per-statement detail isn't on the analytics endpoints — those endpoints are for aggregates. If your report needs per-statement data, the App's traffic page is the surface and the underlying endpoints are part of the main admin API.

Where to go next

Mint a token

Custom reports start with a least-privilege PAT.

Create a personal access token