POST /flags/impressions

Available

Record which flag treatments a device actually saw.

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

Body cap 256 KiB. Up to 500 impressions per request.

Body

json
{
  "impressions": [
    {
      "flag_key": "checkout_v2",
      "treatment": "on",
      "device_id": "<optional>",
      "user_key":  "<optional>",
      "attributes": { },
      "ts": "2026-07-15T10:00:00Z"
    }
  ]
}

If the app plan does not include impression analytics the server silently returns { ok: true, dropped: "no_capability" }.

Back to top