Create Your First Flag
This page walks through the dashboard flow for creating a flag. If you prefer the API, the Quickstart covers the same steps via cURL.
Step 1: Open a project
Log in at ffs.adarshrust.com and select a project from the dashboard. If you haven't created one yet, click New Project, give it a name, and click Create. A production and staging environment are created automatically.
Step 2: Select an environment
Click the environment where you want the flag to live. Flags are scoped to an environment. The same flag key can exist in production and staging with completely independent configurations.
Step 3: Create the flag
Click New Flag and fill in the fields:
| Field | What to set |
|---|---|
| Name | A human-readable label, e.g. Dark Mode |
| Key | A lowercase identifier your code will reference, e.g. dark_mode. Allowed characters: a-z, 0-9, _, -. Must start with a letter. |
| Enabled | Whether the flag is globally on. Set to on to start. |
| Rollout % | 100 to enable for everyone, 0 to disable for everyone while keeping the flag on, or any value in between for a gradual rollout. |
Click Create Flag.
Step 4: Add targeting rules (optional)
Targeting rules let you enable a flag for specific users regardless of the rollout percentage. To add one:
- Open the flag and click New Rule
- Choose a rule type:
user_id,user_email, oremail_domain - Enter the value to match, e.g.
@yourcompany.com - Set a priority number (higher = evaluated first)
Rules are evaluated before the rollout percentage. A user who matches any rule gets the flag enabled immediately.
Step 5: Verify from your app
Call the evaluate endpoint with a user context and confirm the flag appears in the response:
curl -X POST https://api.ffs.adarshrust.com/sdk/v1/evaluate \
-H "X-SDK-Key: sdk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"environment": "production",
"context": { "user_id": "user_1" }
}'
You should see dark_mode (or whatever key you chose) in the flags object.
Changing a flag
All changes take effect on the next evaluation call. No deploy, no cache flush.
To quickly disable a flag for everyone, click the toggle button on the flag list page. To fine-tune the rollout or rules, open the flag and edit in place.