Docs menu

Secrets

Goal: Securely manage API keys and connection credentials.

Credentials live in an encrypted secret store - never exposed in the UI or logs.

Generate an API key

From the workspace:

  1. Open the APIs menu in the top bar
  2. Select API Keys
  3. Choose an expiration preset (15 min, 1 hour, 8 hours, 24 hours, 7 days, 30 days, or 90 days) or a custom duration of up to 90 days
  4. Choose the rights the key carries, for least privilege
  5. Click Generate JWT and copy the token immediately - it won't be shown again

Keys are generated in this window only; Thinky does not generate them.

Pick the right expiry

PresetGood for
15 minutesCLI smoke tests
1 hourShort automation
8 hoursA full workday
24 hoursDaily rotation
7 daysTemporary integration
30 daysLonger-lived service
90 daysThe longest a key may live

A token carries an identity, a workspace, scopes, and an expiry:

{
  "sub": "you@yourteam.com",
  "workspace": "workspace-id",
  "scopes": ["read:queries", "execute:queries"],
  "exp": 1737200000
}

Full token reference - minting, scopes, and the error envelope - is in Auth & Tokens.

Rotate connection credentials

A device's key is changed as Replace a credential says; if a key is exposed, start at If a key is exposed.

Revoke

Revoke a key from APIs -> Keys -> Revoke - it stops working on its next call. Thinky has no tool to revoke keys, so revoke them yourself from the window.

Best practices

PracticeWhy
Short expiry for dev keysLimit exposure while building
Longer expiry for productionAvoid interruptions
Scope appropriatelyLeast necessary access
Rotate regularlyShrink the compromise window
Use environment variablesNever hardcode secrets

Next steps

On fathym.com: OpenX security →

On this page