Dashboard →

Authentication

All authenticated API requests require a Bearer token in the Authorization header.

API key format

Luxkern API keys follow the pattern:

bash
lxk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  • lxk_live_ — Production key prefix
  • lxk_test_ — Test/sandbox key prefix

Using the key

bash
curl https://api.luxkern.com/v1/cronsafe/monitors \
-H "Authorization: Bearer lxk_live_xxx"

Scopes

Each key can be scoped to specific tools and permissions:

ScopeDescription
cronsafe:readRead CronSafe monitors and pings
cronsafe:writeCreate, update, delete monitors
logdrain:writeIngest logs
flags:readEvaluate feature flags
*Full access (all tools, all permissions)

Best practices

  • Use the narrowest scope possible for each integration.
  • Set an expiration date on keys used in CI/CD pipelines.
  • Rotate keys regularly and revoke unused ones.
  • Never commit API keys to version control. Use environment variables.

Back to API Reference