docs

Authentication

Every heliumOS API request authenticates with a bearer token — an operator-scoped API key minted in the dashboard.

Authorization: Bearer sk_sandbox_8fa...

Key tiers

TierPrefixScope
Publishablepk_{mode}_…Safe to ship in client-side code. Read-only, narrow scope.
Restrictedrk_{mode}_…Server-side, with a limited scope: read-only, write-only, or one or more capability tags (e.g. subscribers:write). Preferred.
Secretsk_{mode}_…Full operator scope. Server-side only. Rotate aggressively.

{mode} is always sandbox or live. A sandbox key can never see live data and vice versa — see Environments & mode.

Creating keys

Keys are created in the dashboard by an operator admin or owner. Each key records its capability scope, last-used timestamp, and the human who created it. Keys are shown exactly once on creation.

Key scopes

Choose what a key can do when you create it:

ScopeWhat the key can do
Full accessEvery /v1 endpoint, read and write.
Read-onlyGET and HEAD requests only, except GET /v1/subscribers/{id}/cpni_grant, which needs a full-access key or the cpni:read_grants capability. Every other method is refused with 403.
Write (no read)Non-GET requests only. GETs are refused with 403, as are write endpoints that need a read permission (previews and lookups). To call those, use a full-access key or a key with both read and write.
Fine-grainedOnly the listed resource:action capabilities (e.g. subscribers:write).

Read and write can be combined on one key.

Rotation

Rotate a key by creating a replacement, updating your deployment, then revoking the old one. There is no overlap grace window beyond that — pre-stage the swap.

What never auths a heliumOS call

  • Session cookies. There is no user-session auth on /v1/*.
  • MVNO end-user tokens. heliumOS has no concept of end-user authentication; those subscribers never touch a heliumOS domain.
  • Shared secrets. Every integration uses its own key.

The dashboard is the one exception: it reaches /v1/* via an admin-sudo claim minted by the signed-in operator admin, not via an API key. That path is an internal implementation detail — your integration always uses a key.