Creating API Keys
Authenticate with the Statly API.
Generate a Key
- Go to Settings > API Keys
- Click Generate New Key
- Give it a descriptive name
- Copy the key immediately (shown only once)
Key Permissions
All API keys have full access to your organization's data.
Using the Key
Include in the Authorization header:
Authorization: Bearer your-api-key
Key Management
- Revoke: Immediately invalidates the key
- Regenerate: Creates a new key, invalidates old
- Track last used timestamp
Security Best Practices
- Use environment variables, not source code
- Rotate keys periodically
- Use separate keys for different environments
- Revoke unused keys