Scope a token

Every Airbrx token — personal access token or JWT — carries a scope cube along four axes: method × path × tenant × account. The cube describes the API calls the token is allowed to make. Pick the smallest cube that lets the job run.

The four axes, one at a time

Method

The HTTP method: GET, POST, PUT, DELETE. Read-only jobs should be GET. A "this script will only fetch summaries" token has no business posting rules.

The most common methods to grant explicitly:

Path

The endpoint families this token can hit. The App's API explorer organizes endpoints by tag — analytics, rules, markers, tenants, accounts, team — and the path axis follows those groupings.

Three common path slices:

The mint form supports both broad selections (all endpoints under a tag) and exact-path overrides for tighter control.

Tenant

Which tenants the token can act on. Most automation runs against a single tenant; some (centralized reporting, a consultant who manages many tenants) legitimately need more. The mint form lets you pick a specific tenant, a list of tenants, or "all tenants on this account."

Account

Which accounts the token can act on. This axis matters when a single Airbrx login spans multiple accounts — typically consultants and platform-admins. Most users have a single account, and the axis collapses to that.

Worked examples

Analytics export, one tenant, read-only

A script pulls the analytics endpoints once a day and lands the data in a warehouse for custom reporting.

Marker poster for an ETL job

An ETL platform posts a marker after each load. No reads required, no writes outside the markers endpoint.

Rules sync from a config repo

A CI job reads rule files out of a git repo and pushes them to the API. Bidirectional — reads existing rules to diff, writes the new ones.

Consultant managing several tenants under their own account

A consultant has been invited to several tenants under a client account; they author rules across all of them.

Anti-patterns

Plan-level restrictions still apply on top

The scope cube is a ceiling, not a floor. Even a token with broad scope can't do things the account's plan doesn't allow — a Free account doesn't get rules-admin endpoints, regardless of how the token is scoped. The API enforces both layers; you don't need to mirror plan logic in your scripts.

Where to go next

Mint a least-privilege PAT

The mint flow asks for scope up front. Pick the smallest cube; expand later if you need to.

Open in the App