surveys

GET /v1/feature-flags

Every feature flag that is ON for this person in this organisation.

Alle surveys Endpunkte

Authentifizierung

Senden Sie einen API-Schlüssel als Bearer-Token. Der Schlüssel muss über die Berechtigung org.read verfügen; ein Schlüssel ohne diese wird mit 403 statt 404 abgelehnt.

Hier kommt Ihre Organisations-ID hin

Dieser Endpunkt akzeptiert org_id als Abfrageparameter. Lassen Sie ihn weg, erfasst der Aufruf Ihren gesamten Mandanten-Unterbaum; übergeben Sie ihn, um den Aufruf auf eine Organisation einzugrenzen.

Die ID Ihrer Organisation finden Sie im Dashboard auf dem Bildschirm für API-Schlüssel direkt neben dem Schlüssel selbst. Sie ist bei jedem Ihrer Aufrufe dieselbe.

Ausprobieren

Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.

curl -X GET https://api.zinndigital.com/v1/feature-flags \
  -H "Authorization: Bearer zdk_live_…"

Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole

Details

Evaluated by the engine rather than in the browser, so an ad-blocker cannot switch off whatever every flag gates, and so the product and the API cannot disagree about what a customer is entitled to see. A boolean flag answers `true`; an experiment answers its variant name. ⛔ `available: false` is NOT `flags: {}`. An empty map and "every flag is off" are the same value, and every consumer reads a missing key as off — so a rate-limited vendor would quietly switch off whatever every flag gates. The client keeps its last answer on `available: false`. Requires `org.read`.

Parameter

NameTypErforderlichWas es ist
org_id (query)stringNein
distinct_id (query)stringNein

Antwort

NameTypErforderlichWas es ist
availablebooleanJa
reasonstring<, unconfigured, unreachable, refused, not_found, malformed>Ja
flagsobjectJa`true` for a boolean flag; the variant name for an experiment.

Fehler, die dieser Endpunkt zurückgeben kann

401 · 403