Fathym
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 portal:

  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, or 30 days)
  4. Optionally choose scopes for least privilege
  5. Click Generate JWT and copy the token immediately - it won't be shown again

Or ask Azi: "Create an API key for the mobile app with 30-day expiry." She generates it and shows you the key once.

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

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

  1. Open Connections and select the connection
  2. Click Update Credentials
  3. Enter the new credentials and Test
  4. Save

Rotation needs no downtime - the connection carries a primary and a secondary credential, so you switch to the secondary, then regenerate the primary.

Revoke

Revoke a key from APIs -> Keys -> Revoke - it stops working immediately. In an emergency, ask Azi: "Revoke all API keys for this workspace," and she disables them at once.

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

Every key creation, use, and revocation is recorded and attributable.

Next steps

On this page