Nara Lens/Docs

Authentication

Secure your API requests with API keys.

API Keys

All API requests require authentication via an API key. You can include your key in one of two ways:

Option 1: Authorization Header (Recommended)

Authorization: Bearer sk-your-api-key-here

Option 2: X-API-Key Header

X-API-Key: sk-your-api-key-here

Managing API Keys

You can create, rename, and revoke API keys from your dashboard:

  • Create keys - Generate new API keys with optional names
  • Rename keys - Update key names for organization
  • Revoke keys - Delete keys that are no longer needed

Important: The full API key is only shown once when created. Store it securely - you won't be able to see it again.

Security Best Practices

  • Never expose API keys in client-side code or public repositories
  • Use environment variables to store keys
  • Rotate keys periodically
  • Create separate keys for different applications

Quotas & Credits

Each plan includes a monthly credit allocation. You can check your usage in the dashboard.

PlanCredits/Month
Free1,000
Pro50,000
EnterpriseCustom