Process multiple decisions

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.

SecurityCookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
Request
Request Body schema: application/json
features
required
Array of any

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

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

user_agent
string

Client user agent

jwt
string

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

dry_run_mode
boolean
Default: false

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

Responses
200

OK

400

Bad Request

post/zephr/decide
Request samples
application/json
{
  • "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"
}
Response samples
application/json
{
  • "results": [
    ]
}