Developer pages

Releases & environments

SDK release/environment/dist/commitSha vs Settings API keys — two different ‘environment’ ideas.

Two different “environment” ideas

ConceptWherePurpose
Settings → Environments / API keysDashboard project settingsNamed API keys that all ingest into the same project; use different keys for staging vs production apps if you want operational separation
SDK environment optionHumanBehaviorTracker.initString tag stamped on error reports (e.g. production, staging) for Issues filters

They are independent. A staging API key does not automatically set SDK environment: "staging" — set the init option explicitly.

SDK version tags

Set at init (and mirrored on the React provider options):

OptionStamped onUsed for
releaseError reportsReleases product; issue filters; required for source-map upload pairing
environmentError reportsIssues environment filter
distError reportsOptional build discriminator; pairs with release when looking up maps
commitShaError reportsGitHub blob links for culprits when available
HumanBehaviorTracker.init(apiKey, {
  release: "1.4.2",
  environment: "production",
  dist: "web",
  commitSha: process.env.NEXT_PUBLIC_GIT_SHA,
});

Upload maps with the same release / dist — see Source maps.

Settings API keys

From the project schema / Environments UI:

FieldMeaning
keySecret presented once; typically prefixed hb_
nameUnique per project (e.g. “Production”, “Staging”)
scopesReserved JSON list — not enforced today
Rotate / deleteImmediate invalidate; update client env vars

Keys authenticate ingestion via Authorization: Bearer <key>. They do not encode release or SDK environment.

Product surfaces

SurfaceConsumes
Releasesrelease (and related error aggregates)
Issues filtersenvironment, release
Settings → EnvironmentsAPI key CRUD