Skip to main content

Create a Key

  1. Go to Dashboard → Settings → API Keys
  2. Click Create Key
  3. Set permissions and expiration
  4. Copy the key (shown only once)

Key Scopes

ScopeDescription
passports:readList and get passports
passports:writeCreate, update, delete passports
inference:runRun chat completions
receipts:readGet and verify receipts
adminFull access

Rotate Keys

// Old key continues working for 24 hours after rotation
await lucid.keys.rotate(keyId);

Best Practices

  • Use separate keys for production and development
  • Set the minimum required scopes
  • Rotate keys regularly
  • Never commit keys to source control