Skip to content

Zephr Features

Retrieve the Zephr Feature

Request

Retrieves the Zephr browser features by default, or optionally with query parameter ?ruleType returns the given type, they can be HTML, browser, JSON, SDK.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Query
ruleTypestring

Type of the feature rule

Enum:"browser""html""json""sdk"
cURL
curl -i -X GET \
  'https://demo-site/zephr/features?ruleType=browser' \
  -b blaize_session=YOUR_API_KEY_HERE

Responses

OK. The response will be an array of features.

Headers
any
Bodyapplication/json
Array [
idstring
Example:"feature-live"
labelstring
Example:"feature-label"
slugstring
Example:"feature-slug"
targetTypestring or null
Enum:"CSS_SELECTOR""COMMENT_TAG"
cssSelectorstring

If the feature has a targetType of CSS_SELECTOR then the response will include a cssSelector field.

Example:".feature-css-selector"
]
Response
[ { "id": "feature-live", "targetType": "COMMENT_TAG", "label": "feature-label", "slug": "feature-slug" } ]