Get a key
Developers > API Keys → Add credits ($10 min) → Create key Keys start withnj_sk_ and are shown once. Copy it immediately.
Use it
Store your key safely
Never hardcode it. Use environment variables:Key management
- You can have up to 5 active keys per account
- Use separate keys for dev / staging / production
- Revoke compromised keys instantly from Developers > API Keys
- Revoked keys stop working immediately
Auth errors
| Status | Error | Fix |
|---|---|---|
| 401 | missing_api_key | Add Authorization: Bearer nj_sk_... header |
| 401 | invalid_api_key | Check key starts with nj_sk_ and isn’t revoked |
CORS
All/api/v1/* endpoints allow cross-origin requests. But don’t put your API key in frontend code — proxy through your backend instead.