Skip to main content

Token management

Tokens are managed in the lsg.bio dashboard under Settings → API — not via the API itself. That is deliberate: the page that mints credentials should not be reachable with the credentials it minted.

Creating a token​

  1. Open Settings → API and click Create token.
  2. Enter a name that says where the token will live: "Zapier", "deploy script", "analytics exporter". Six months from now, the name is the only way to know what a token is for.
  3. Select scopes. Grant the minimum the integration needs — you can always create a second, broader token later.
  4. Click Create token.

The dialog then shows the full token value once, with a copy button:

Shown once

After you close the dialog, the full value is gone. The API stores a hash; no one — including lsg.bio support — can retrieve it. If a token is lost, revoke it and create another.

Reading the table​

Each row of Settings → API shows:

FieldMeaning
NameThe label you chose at creation
TokenA short prefix (lsgbio_a1b2c3d4e…) — identification only
ScopesExactly what this token may do
CreatedWhen the credential was issued
Last usedMost recent API call (updates automatically)
RequestsTotal authenticated calls, plus the error count and last status
KindLive, or Test (read-only sandbox)
StatusActive, or Revoked

Requests is a lightweight usage meter: every authenticated call increments it, and a non-2xx/3xx answer increments the error count. It is a health signal, not a billing meter.

Test tokens​

A test token carries the same scopes as a live token but reads a synthetic sandbox tenant, never production data. The sandbox is seeded on first use with sample links, a product, a campaign, and a capture form; calling read routes returns those fake rows only. Every mutating request (POST, PATCH, DELETE) is refused with 403 / sandbox_read_only, so a builder can explore the shapes before switching to a live token and can never write production data from the sandbox.

Last used is how you find dead tokens: anything that has not been used in months is a candidate for revocation.

Revoking a token​

Click Revoke, then confirm. Revocation is immediate and irreversible — every request carrying that token fails on its next attempt with 401.

Revoked rows stay in the list on purpose. "What has access to my account" includes what had access yesterday; the list doubles as an audit trail.

Hygiene practices that work​

  • One token per integration. When one is compromised or retired, the blast radius is exactly that integration.
  • Rotate by create-then-revoke: make the new token, switch the consumer, confirm it works, then revoke the old one.
  • Treat last-used like a light left on: check the tab now and then.