Product pages

Environments & API keys

Create, view, copy, rename, rotate, and delete project API keys — every control.

Panel

Sidebar: Project → Environments
Header: EnvironmentsManage the API keys used to send data to this project.

Banner: These keys grant write access to your project. Keep them secret and never commit them to version control.

Section heading: API keys
Helper: Use the default key, or add production, staging, and local keys for independent rotation.

Table states

StateCopy
LoadingLoading API keys…
ErrorError message from the API
EmptyNo API keys yet. Create one below to start sending data.
LoadedRows + footer All API keys loaded

Columns

ColumnContent
NameKey label (with key icon)
KeyMasked by default (hb_ + x’s, or first 4 chars + x’s)
CreatedLocale date (e.g. Jun 17, 2026) or -
ActionsCopy button + ⋯ menu

Create a key

ControlBehavior
New API key fieldPlaceholder e.g. Production; Enter submits
Create key / Creating…Enabled when name non-empty → POST /api/projects/:id/api-keys

Per-key actions

Copy button copies the full secret to the clipboard.

Overflow menu (⋯):

ItemBehavior
View key / Hide keyReveal or mask the secret in the row
Change nameInline rename; Enter/blur saves (PATCH with { name }); Escape cancels
Rotate key / Rotating...PATCH without body → new secret, same row
Delete key / Deleting...DELETE; disabled when this is the only key

Practice

  1. Prefer separate keys for local vs production.
  2. Put keys in env vars — see Create project.
  3. Rotate immediately if a key leaks.
API keys
Screenshots use a synthetic Docs Demo project, not customer data.