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

# Execute Browser feature transformations

`POST /zephr/feature-transformations`

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.

## Headers

- `Cookie` string

## Request body

- object
  - `featureIds` string[], required — An array of HTML feature slugs such as article or premium-content.
  - `session` string — The 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

- BrowserFeaturesTransformationsResponse
  - `featureResults` object — Map of HTML Feature IDs and their corresponding result transformations. Feature results are included only when the associated feature is enabled; disabled features may be omitted from the map.
    - `article` object
      - `ruleTransformations` object
        - `type` string — The transformation type.
        - `id` string — The rule ID.
        - `contentLength` number — Content length
        - `outcomeId` string — The outcome ID.
        - `outcomeLabel` string — The outcome label.
        - `ruleId` string — The rule ID.
        - `ruleLabel` string — The rule label.
        - `style` string — The transformation style.
        - `url` string — The transformation URL.
        - `value` string — The string transformation value.
      - `zoneRuleTransformations` object
        - `zone` string — The zone type (HEADER, FOOTER, POPUP).
        - `closeable` string — Indicates whether the zone can be closed.
        - `css` string — CSS
        - `displayAfter` string — Specifies whether the content should be displayed after a specific condition or event.
        - `scrollable` boolean — Indicates whether the zone is scrollable.
        - `ruleTransformations` unknown[] — Rule transformations
          - unknown
  - `resources` object
    - `forms` object — Forms used in feature results
    - `paymentForms` object — Payment Forms used in feature results
    - `uiComponents` object — UI Components used in feature results
  - `accessDetails` object

---

[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)
