API Key Types
| Type | Prefix | Use Case |
|---|
| Live | gr_live_ | Production usage |
| Test | gr_test_ | Development and testing |
Creating Keys
- Navigate to Dashboard → Settings → API Keys
- Click Create API Key
- Select scopes and environment
- Copy and securely store the key
API keys are shown only once. Store them securely immediately after creation.
Using Keys
curl https://api.rubric.ai/v1/datasets \
-H "Authorization: Bearer gr_live_xxxxxxxx"
Key Rotation
Rotate keys regularly:
# Create new key
new_key = client.api_keys.create(name="production-v2")
# Update your applications to use new_key
# Revoke old key
client.api_keys.revoke("key_old_id")
Scopes
| Scope | Access |
|---|
read | Read-only access |
write | Create and update resources |
admin | Full access including settings |