Getting an API Key
Log In
Go to console.vijil.ai and log in
Using the API Key
Environment Variable (Recommended)
Direct Initialization
Configuration File
Create~/.vijil/config.yaml:
Key Permissions
API keys inherit team permissions:| Scope | Capabilities |
|---|---|
| Full Access | All operations |
| Read Only | View only |
| Evaluations | Run evaluations only |
Key Rotation
Rotate keys regularly:- Create new key
- Update your applications
- Revoke old key
Security Best Practices
- Use environment variables - Not hardcoded values
- Rotate regularly - Every 90 days recommended
- Limit scope - Use minimal permissions needed
- Monitor usage - Check for unauthorized access
- Revoke unused keys - Clean up old keys
Troubleshooting
âInvalid API Keyâ
- Verify the key is correct
- Check for extra whitespace
- Ensure the key hasnât been revoked
âInsufficient Permissionsâ
- Check key scope matches operation
- Verify team membership
- Contact admin for access
Next Steps
Quickstart
Run your first evaluation
API Reference
Full API documentation