Skip to main content
Before your application can access Lumin data or call Lumin APIs, you need to authenticate your requests. Lumin supports two authentication methods:

API Key

API Keys are long-lived credentials you generate from the Lumin Developer settings page. You include the key on each request using the X-API-KEY header or HTTP Basic Auth. Best for:
  • Server-to-server integrations
  • Scheduled backend jobs and cron tasks
  • Quick testing and development
Learn how to use API Keys →

OAuth 2.0

OAuth 2.0 lets end users grant your application access to their Lumin data without sharing their credentials. Lumin supports the authorization code flow with two client types:
  • Public Application (PKCE) — for mobile apps, single-page applications, and desktop apps that cannot securely store a client secret. Uses PKCE (Proof Key for Code Exchange) instead of a client secret.
  • Private/Server Application — for server-side applications that can securely store a client secret. Also supports refresh tokens for long-lived sessions.
Best for:
  • Web apps where users sign in and authorize access
  • Applications acting on behalf of individual Lumin users
  • Scenarios requiring fine-grained permission control via scopes
Learn how to use OAuth 2.0 →

Choosing the right method

Both methods can be used in production. If you are building a user-facing application where individuals authorize access to their own Lumin data, use OAuth 2.0. If you are running automated backend processes on behalf of a single workspace, an API Key is simpler to set up.