Skip to content

Process multiple decisions

Request

Processes multiple decisions. 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.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Bodyapplication/json
featuresArray of anyrequired

The list of features to evaluate. This must be contain at least one element. Features are evaluated sequentially, in the order they are provided.

Example:
[ { "slug": "featureX", "path": "/x.html", "content_id": "xxx-xxx-xxx", "inputs": {} } ]
sessionstring

Zephr Session ID, required for trials.

Example:"xxx-xxx-xxx"
foreign_keysobject

Foreign system and ID used to identify the user.

Example:
{}
ipstring

Client IP address, defaults to request IP.

Example:"x.x.x.x"
user_agentstring

Client user agent

Example:"Mozilla/5.0 (Macintosh; Intel Mac OS X 11)..."
jwtstring

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

Example:"xxx-xxx-xxx"
dry_run_modeboolean

A flag to indicate where the decision request would persist states such as user entitlement, segments, test groups, etc.

Default:false
{ "features": [ { … } ], "session": "xxx-xxx-xxx", "foreign_keys": {}, "ip": "x.x.x.x", "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 11)...", "jwt": "xxx-xxx-xxx" }

Responses

OK

Headers
any
Bodyapplication/json
resultsArray of objects(feature-decision-response)required

List of feature decision outcomes. These will be ordered as provided in the request.

Response
{ "results": [ { … } ] }