new_dashboard. Each step shows the exact request and response so you can follow along with curl or jump straight to the SDK snippet you’ll actually ship.
Already have an environment and SDK key? Skip ahead to Step 4: evaluate it in code, or go directly to the Node.js SDK guide or Evaluation API reference for your stack.
Before you start
You’ll need your account’s access token to call the API steps below.Ship a flag end to end
1
Create an environment
An environment scopes everything else — flags, rollouts, and one SDK key. Create one per stage of your pipeline (
development, staging, production).Request
Response
2
Create a flag
A flag is just a typed key until it’s attached to an environment. Seeded examples in this repo use
snake_case.Request
Response
Flag keys are case-sensitive and must match exactly wherever they’re evaluated —
new_dashboard, not New_Dashboard or newDashboard. Same rule as in Overview.3
Enable the flag for the environment
Creating a flag and enabling it are separate steps on purpose — you can create the key well ahead of a launch and flip it on later with no code change.Returns
Request
204 No Content on success. If you get a 404, double-check flagId and environmentId are from the same product — see Admin workflow for how flags and environments attach.4
Evaluate it in code
Pick whichever of these matches how you’re testing right now — a raw HTTP call, the Node.js SDK, or the React hook. All three ask the same question: is
new_dashboard on for this user?The SDK (
@clubedge/feature-flags-node) calls GET /sdk/v1/config and evaluates locally — it does not call POST /sdk/v1/evaluate at runtime. The Direct HTTP endpoint above is for non-JS environments or when you need server-side evaluation with per-request context.5
Confirm it worked
dashboardEnabled should be true. If it isn’t, work through the table below before assuming the SDK is broken — the most common cause is a dashboard-side attachment issue, not a code issue.
