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.
OK
{- "featureIds": [
- "featureX"
], - "session": "xxx-xxx-xxx",
- "path": "/x.html",
- "content_metadata": {
- "content_id": "xxx-xxx-xxx"
}, - "giftToken": "xxx-xxx-xxx",
- "jwt": "xxx-xxx-xxx",
- "customData": {
- "key": "value"
}
}
{- "featureResults": {
- "featureX": "blaize.transform.resource('...')"
}, - "resources": {
- "uiComponents": {
- "M-eRFAot": "<h1>Example</h1>"
}
}, - "accessDetails": {
- "authenticated": false,
- "accessDecisions": {
- "W28U8Z": false
}, - "entitlements": {
- "W28U8Z": {
- "usedInDecision": false,
- "decrementedInDecision": false
}
}, - "credits": {
- "W28U8Z": {
- "usedInDecision": false,
- "decrementedInDecision": false,
- "totalCredits": 0,
- "remainingCredits": 0
}
}, - "meters": {
- "W28U8Z": {
- "usedInDecision": false,
- "decrementedInDecision": false,
- "totalCredits": 0,
- "remainingCredits": 0
}
}, - "trialTrackingDetails": [
- {
- "entitlementId": "W28U8Z",
- "entitlementType": "entitlement",
- "trackCreditsUsed": false,
- "trackCreditsRemaining": false,
- "creditsUsedKey": "creditsUsed",
- "creditsRemainingKey": "creditsRemaining"
}
], - "trials": {
- "pLvjuu": {
- "totalCredits": 1,
- "remainingCredits": 0,
- "tracker": "",
- "reportInDataLayer": true,
- "dataLayerCreditsUsedKey": "trial-pLvjuu-creditsUsed",
- "dataLayerCreditsRemainingKey": "trial-pLvjuu-creditsRemaining",
- "decrementedInDecision": true,
- "usedInDecision": true
}
}, - "timeTrials": {
- "xCoYJr": {
- "reportInDataLayer": true,
- "trialDurationUnits": "HOURS",
- "trialDuration": 1,
- "entryTime": "2024-02-08T08:48:33.056008906Z[UTC]",
- "trackerHits": 1,
- "timeRemainingInTrial": 0,
- "dataLayerTrialDurationKey": "trial-xCoYJr-trialDuration",
- "dataLayerTrialDurationUnitsKey": "trial-xCoYJr-trialDurationUnits",
- "dataLayerTrackerEntryTimeKey": "trial-xCoYJr-trackerEntryTime",
- "dataLayerTrackerHitsKey": "trial-xCoYJr-trackerHits",
- "dataLayerTrialTimeRemainingKey": "trial-xCoYJr-trialTimeRemaining",
- "activeInDecision": true
}
}, - "testGroups": {
- "6663d5ea-d1db-4104-893e-65a21a92e32e": "B"
}, - "activeProducts": [
- "example product"
]
}
}