v1

latestOpenAPI 3.0.02026-08-0610682246.0 KB
SDK Feature Decision Engine

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.

post/zephr/decide

Request body

sessionstring

Zephr Session ID, required for trials.

foreign_keysobject

Foreign system and ID used to identify the user.

ipstring

Client IP address, defaults to request IP.

user_agentstring

Client user agent

jwtstring

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

dry_run_modeboolean

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

Example request

{
  "features": [
    {
      "slug": "featureX",
      "path": "/x.html",
      "content_id": "xxx-xxx-xxx",
      "inputs": {}
    }
  ],
  "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

OK

Example response

{
  "results": [
    {
      "sdkFeatureSlug": "sdk-feature-1",
      "outputValue": "YES",
      "error": "500: Internal error ..."
    }
  ]
}