GET /flags/ruleset

Available

Full ruleset the SDK evaluates locally, edge-cached per app.

GEThttps://ctrlapp.krdcode.com/api/public/sdk/v1/flags/ruleset
Auth: Bearer <PUBLISHABLE_KEY>

Filtered to the flag capabilities unlocked by the app's plan.

Response (abridged)

json
{
  "flags": [
    {
      "id": "...",
      "key": "checkout_v2",
      "enabled": true,
      "default_treatment": "off",
      "rollout_seed": "...",
      "treatments": [{ "key": "on", "weight": 100, "payload": null }],
      "rules":      [{ "priority": 1, "...": "..." }]
    }
  ]
}
Back to top