Skip to main content

API Key Types

TypePrefixUse Case
Livegr_live_Production usage
Testgr_test_Development and testing

Creating Keys

  1. Navigate to Dashboard → Settings → API Keys
  2. Click Create API Key
  3. Select scopes and environment
  4. 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

ScopeAccess
readRead-only access
writeCreate and update resources
adminFull access including settings