Skip to content

Authentication

Every call to the Norlen API is authenticated with an API key, sent in the Authorization header as a Bearer token.

Authorization: Bearer YOUR_API_KEY

The key identifies your account, applies your plan (allowed models, requests/min limit), and tracks usage. A call without a key — or with an invalid key — returns 401.

In the dashboard (app.norlen.io), under Dashboard. The same key works for all endpoints (chat, embeddings, image).

  • Never expose the key in the browser. Call the API from your backend; don’t embed the key in front-end code, mobile apps, or public repositories.
  • Use environment variables, not hardcoded values in your code.
  • Rotate the key if you suspect a leak — generate a new one in the dashboard and update your services.
Terminal window
export NORLEN_API_KEY="sk-..."
curl https://api.norlen.io/v1/models \
-H "Authorization: Bearer $NORLEN_API_KEY"
StatusMeaningWhat to do
401 UnauthorizedKey missing, invalid, or revokedCheck the Authorization header and generate a new key if needed
429 Too Many RequestsPlan’s requests/min limit reachedReduce the rate or upgrade your plan — see Pricing & quotas