---
title: "Execute Browser feature decisions"
method: POST
path: "/zephr/feature-decisions"
tags: ["Browser Feature Transformations"]
---

# Execute Browser feature decisions

`POST /zephr/feature-decisions`

Zephr HTML Features can be run in the browser by calling this API directly or using the Zephr Browser SDK. For compatibility with CDN, any web headers (Referrer, User-Agent) will be accepted and passed onto the rule engine.
**Note**: This endpoint may return different response structures depending on your tenant configuration. The example shown here reflects one supported response format.
 If your tenant returns a different structure and you need this format, contact Zuora Support for guidance.

## Headers

- `Cookie` string

## Request body

- object
  - `featureIds` unknown[], required — Array of HTML Feature IDs
    - unknown
  - `session` string — Zephr Session ID
  - `referer` string — Browser referer
  - `path` string — Request path, defaults to "/". If available, include the content ID as a query parameter. For example, `/story.html?content_id=abc-123`.
  - `content_metadata` object
    - `content_id` string — Content ID, used to perform requests to a 3rd party API for additional content information used in making a decision.
  - `giftToken` string — Token to provide access to content for one session.
  - `jwt` string — A Json Web Token, may include identity or product holding claims.
  - `customData` object — Custom data to be used in Feature HTML browser rule. Accepts a JSON object.

## Response `200`

OK

- BrowserFeaturesResponse
  - `featureResults` object — Map of HTML Feature IDs and feature result transformations.
    - `featureX` string — Feature result transformations
  - `resources` object — Map of transformation resources
    - `forms` object — Forms used in feature results.
    - `paymentForms` object — Payment Forms used in feature results.
    - `uiComponents` object
    - `hostedUiComponents` object — Hosted UI Components used in feature results.
    - `componentTemplates` object — Component Templates used in feature results.
  - `accessDetails` object — Feature access details
    - `authenticated` boolean — Is the session authenticated
    - `accessDecisions` object
    - `entitlements` AccessDetailsUsageEnt — Map of meter usage
      - `usedInDecision` boolean
      - `decrementedInDecision` boolean
    - `credits` AccessDetailsUsage — Map of meter usage
      - `usedInDecision` boolean
      - `decrementedInDecision` boolean
      - `totalCredits` number
      - `remainingCredits` number
    - `meters` AccessDetailsUsage — Map of meter usage
      - `usedInDecision` boolean
      - `decrementedInDecision` boolean
      - `totalCredits` number
      - `remainingCredits` number
    - `trialTrackingDetails` unknown[] — Array of trial tracking details
      - unknown
    - `trials` AccessDetailsTrial — Map of trial usage
      - `totalCredits` number
      - `remainingCredits` number
      - `tracker` string
      - `reportInDataLayer` boolean
      - `dataLayerCreditsUsedKey` string
      - `dataLayerCreditsRemainingKey` string
      - `decrementedInDecision` boolean
      - `usedInDecision` boolean
    - `timeTrials` AccessDetailsTimeTrial — Map of time trial usage
      - `reportInDataLayer` boolean
      - `trialDurationUnits` string
      - `trialDuration` number
      - `entryTime` string
      - `trackerHits` number
      - `timeRemainingInTrial` number
      - `dataLayerTrialDurationKey` string
      - `dataLayerTrialDurationUnitsKey` string
      - `dataLayerTrackerEntryTimeKey` string
      - `dataLayerTrackerHitsKey` string
      - `dataLayerTrialTimeRemainingKey` string
      - `activeInDecision` boolean
    - `testGroups` object
    - `activeProducts` string[] — Array of user's active products

---

[API](https://skmtc.net/zuora/apis/public-api-reference.md) · [All operations](https://skmtc.net/zuora/apis/public-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zuora/public-api-reference/revisions/0400dd83950b/schema)
