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:
- Open the APIs menu in the top bar
- Select API Keys
- 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
- Choose the rights the key carries, for least privilege
- 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
| Preset | Good for |
|---|---|
| 15 minutes | CLI smoke tests |
| 1 hour | Short automation |
| 8 hours | A full workday |
| 24 hours | Daily rotation |
| 7 days | Temporary integration |
| 30 days | Longer-lived service |
| 90 days | The 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
| Practice | Why |
|---|---|
| Short expiry for dev keys | Limit exposure while building |
| Longer expiry for production | Avoid interruptions |
| Scope appropriately | Least necessary access |
| Rotate regularly | Shrink the compromise window |
| Use environment variables | Never hardcode secrets |
Next steps
- Test your API -> APIs
- Manage team access -> Permissions
On fathym.com: OpenX security →