Dashboard →

FeatureFlags

Ship features safely with instant rollbacks. Percentage rollouts, user targeting, and environment overrides built in.

Key endpoints

  • POST /v1/flags — Create a flag
  • GET /v1/flags — List flags
  • GET /v1/flags/evaluate — Evaluate flags for a context
  • PATCH /v1/flags/:id — Update a flag
  • DELETE /v1/flags/:id — Delete a flag

curl

bash
# Evaluate flags "text-[var(--color-info)] font-medium">for a user
curl "https://api.luxkern.com/v1/flags/evaluate?user_id=usr_123&env=production" \
-H "Authorization: Bearer lxk_live_xxx"

Node.js (with SDK)

js
"text-[var(--color-info)] font-medium">import { LuxkernFlags } "text-[var(--color-info)] font-medium">from "@luxkern/flags";
 
"text-[var(--color-info)] font-medium">const flags = "text-[var(--color-info)] font-medium">new LuxkernFlags({ apiKey: "lxk_live_xxx" });
 
"text-[var(--color-info)] font-medium">const isEnabled = "text-[var(--color-info)] font-medium">await flags.isEnabled("">new-checkout", {
userId: "usr_123",
env: "production",
});
 
"text-[var(--color-info)] font-medium">if (isEnabled) {
// Show "text-[var(--color-info)] font-medium">new checkout flow
}

Full API Reference · @luxkern/flags SDK