---
title: "Process multiple decisions"
method: POST
path: "/zephr/decide"
tags: ["SDK Feature Decision Engine"]
---

# Process multiple decisions

`POST /zephr/decide`

## Request

- Base URL: `https://demo-site`
- URL: `https://demo-site/zephr/decide`
- Auth: one of:
  - API key in cookie `blaize_session`
  - API key in query parameter `jwt`
  - API key in header `x-blaize-jwt`
  - API key in header `x-zephr-jwt`
  - HTTP bearer
  - API key in cookie `blaize_jwt`

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.

## Request body

- object
  - `features` unknown[], required: The list of features to evaluate. This must be contain at least one element. Features are evaluated sequentially, in the order they are provided.
    - unknown
  - `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: A flag to indicate where the decision request would persist states such as user entitlement, segments, test groups, etc.

## Response `200`

OK

- FeatureDecisionsResponse
  - `results` FeatureDecisionResponse[], required: List of feature decision outcomes. These will be ordered as provided in the request.
    - `sdkFeatureSlug` string, required: The slug of the SDK feature which has been evaluated.
    - `outputType` 'ENUM' | 'STRING' | 'NUMBER' | 'JSON' | 'TRANSFORMATION' | 'COMPONENT': Feature output type. Present if there were no errors.
    - `outputValue` string: Feature output value. Present if there were no errors. - For the 'JSON_COMPONENT' output type, the response will be stringified JSON. - For the 'TRANSFORMATION' output type, the response will contain a stringified JSON array of transformations to be applied, including ENABLE_CONTENT, CUSTOM_COMPONENT, TEMPLATE_COMPONENT and FORM.
    - `error` string: The error message explaining why this decision failed to resolve. Present only if there was an error.

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/zuora/apis/zuora-2.md) - [All operations](https://skmtc.dev/zuora/apis/zuora-2/llms.txt) - [OpenAPI document](https://skmtc.dev/zuora/apis/zuora-2/revisions/678190d04c40?raw)
