API Keys
Use API keys for servers, scripts, CI jobs, and SDK clients. Keep them out of browser code and mobile clients. Create and rotate keys from Dashboard → Credentials → API Keys, the CLI, or the SDK:X-API-Key:
RUNTOOLS_API_KEY automatically:
Session Tokens
Dashboard and CLI login use WorkOS-backed session tokens. Session tokens authenticate withAuthorization: Bearer:
Environment Variables
.env
Scopes
API key scopes are checked by the API service. Use the narrowest scopes that fit your integration.Rotation
- Create a replacement key.
- Deploy the new key to your application or CI secret store.
- Verify the new key works.
- Revoke the old key.