Process a single decision

Processes single decision. The SDK Feature Decision Engine can be invoked via the Public API to calculate a decision output response based upon Feature SDK Rules created in the Zephr Console. This endpoint is used by the Zephr SDK but can be called directly for custom integrations.

SecurityCookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Request
query Parameters
raw
required
boolean
Default: false

Should output raw value

Request Body schema: application/json
sdkFeatureSlug
required
string

Feature SDK slug

session
string

Zephr Session ID, required for trials

foreign_keys
object

Foreign system and ID used to identify the user

ip
string

Client IP address, defaults to request IP

userAgent
string

Client user agent

path
string

Request path, required for trials

contentId
string

Content ID, used to perform requests to a 3rd party API for additional content information used in making a decision

jwt
string

A Json Web Token, may include identity or product holding claims

...
string

Custom inputs configured in Feature SDK rule

Responses
200

Raw parameter response

post/zephr/decision-engine
Request samples
application/json
{
  • "sdkFeatureSlug": "featureX",
  • "session": "xxx-xxx-xxx",
  • "foreign_keys": { },
  • "ip": "x.x.x.x",
  • "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11)...",
  • "path": "/x.html",
  • "contentId": "xxx-xxx-xxx",
  • "jwt": "xxx-xxx-xxx"
}