/features [GET]

Return list of (active) feature flags for the requested site – unprotected – or for the requested site and member – protected.

Parameters

  • siteid (numeric) [REQUIRED] - a valid site ID
  • userid (numeric) [optional] - if called without an Authorization header, this is an error; if called with an Authorization header, this must match the authenticated member’s ID

The presence of userid indicates whether user segment activated feature flags should be considered or not. The siteid must always be provided.

Response Messages

403 Forbidden - if siteid is omitted or is invalid; if userid is present for an unauthenticated call or doesn’t match the current member’s ID for an authenticated call.

{ "fail" : "Invalid Argument" }

200 OK - success: returns a list of active features by name

{
  "features" : [
    "feature-a",
    "feature-c",
    "cool-thing"
    ...
  ]
}