surveys
GET /v1/feature-flags
Every feature flag that is ON for this person in this organisation.
Uwierzytelnianie
Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie org.read; klucz bez niego jest odrzucany z kodem 403, a nie 404.
Miejsce na identyfikator organizacji
Ten punkt końcowy przyjmuje org_id jako parametr zapytania. Pomiń go, a wywołanie obejmie całe drzewo dzierżawy; prześlij go, aby ograniczyć wywołanie do jednej organizacji.
Identyfikator Twojej organizacji znajduje się na ekranie kluczy API w Twoim panelu, obok samego klucza. Jest to ten sam identyfikator w każdym wywołaniu, które wykonujesz.
Wypróbuj
Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.
curl -X GET https://api.zinndigital.com/v1/feature-flags \
-H "Authorization: Bearer zdk_live_…"Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API
Szczegóły
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`.
Parametry
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
org_id (query) | string | Nie | — |
distinct_id (query) | string | Nie | — |
Odpowiedź
| Nazwa | Typ | Wymagane | Co to jest |
|---|---|---|---|
available | boolean | Tak | — |
reason | string<, unconfigured, unreachable, refused, not_found, malformed> | Tak | — |
flags | object | Tak | `true` for a boolean flag; the variant name for an experiment. |
Błędy, które ten punkt końcowy może zwrócić
401 · 403