Debug V2

Get feature flag

Changed on

Get current feature flag setting

Returns the current market version (V1 or V2) for the authenticated user. Also indicates whether the client should show debug / feature-flag tooling (admin users, or any user when NODE_ENV is development).

Restricted to authenticated users only.

get/debug/feature-flag

Request

  • Base URL: /api/v2 (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v2/debug/feature-flag
  • Auth: none required

Response

Current feature flag setting

user_idstring required

User ID

market_version'V1' | 'V2' required
is_developerboolean required

Whether user has developer privileges (admin or dev environment)

has_overrideboolean required

Whether this user has a manual override (show treatment picker if true)

flagsRecordStringBoolean required

Construct a type with a set of properties K of type T

overridden_flagsstring[] required

Which flags this user has overrides for

Changes

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status

    • ○

      added the required property to the response with the status