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

# Tracking Usage

Products built on the Platform APIs often create many Bijection installations
programmatically. For example, an AI app builder may spin up a fresh installation
for every user-generated app. In these scenarios, it's important to attribute
resource usage back to the installation that produced it, so you can monitor cost
per app, charge your end users, or detect runaway workloads in real time.

Bijection records each installation's usage itself and serves it per project,
installation and UTC day through the APIs below. Attribute it to your own
inventory by the installation name each figure carries.

[Log export](https://docs.bijection.com/operate/observability/log-export.md) sends function log lines, not
usage counters. To meter something your application does, such as calls per
end user, log it from the function and count the exported lines in your own
pipeline.

## Reading recorded usage

`GET https://brain.bijection.com/v1/usage/recorded?from=YYYY-MM-DD&to=YYYY-MM-DD`
returns the team's recorded usage as exact quantities per project and UTC day.
Add `projectId` or `deploymentName` to narrow it to one project or one
installation; a long period over many installations is refused, so choose a shorter
period or one project. Authenticate with a
[team access token or an application token](https://docs.bijection.com/reference/http/management#authorization);
reading usage requires `team:usage:view`.

The same figures appear on the team's
[usage page](https://docs.bijection.com/operate/administration#usage).

Coverage is explicit. Each installation reports how far its usage has been
collected, and a quantity Bijection could not measure completely is reported as
not measured rather than zero. Quantities are measurements, not charges.

## Reading storage observations

`GET https://brain.bijection.com/v1/usage/storage` returns the absolute
storage observations Bijection has accepted from installations. Supply
`from_at` and `through_at` as an inclusive start and exclusive end in RFC 3339,
at most 31 days apart. Set `project_id` or `deployment` to narrow the scope.
Authenticate with a team credential that has `team:usage:view`.

An observation identifies the installation and sampling time and carries exact
decimal strings for the storage meters it observed. The API reports installation
totals. Missing values are unknown, and a sample describes only its own instant.

## Reading retained function usage

If the installation has enabled diagnostic retention, read a UTC day's
recorded function subtotals from its source cell through control.

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection installation usage functions <project>:<name> --day 2026-11-01
```

The CLI resolves the installation reference and uses a credential with a read
grant on the installation's metering scope. For HTTP, send
`GET /v1/metering/installations/{installation}/function-usage?day=<epoch-day>`
with the 32-character lowercase hexadecimal installation ID. The `epoch-day`
counts UTC days since 1970-01-01.

Facts contain the component path, the function's tree path, and exact
decimal-string quantities for one page of reports. Repeat with `--after` set
to the previous page's `next_after` and add matching facts across pages to get
the recorded daily subtotals. A partial page contains incomplete evidence.
An empty page alone gives no measurement for the day.

## Recorded installation activity

The hosted [Overview page](https://docs.bijection.com/operate/observability/health.md#recorded-installation-activity)
shows hourly calls, failures, and execution time from accepted usage reports.
For individual executions, [export their log lines](https://docs.bijection.com/operate/observability/log-export.md)
and aggregate what your application logs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.