---
title: "Execute the Decision Engine"
method: POST
path: "/blaize/decision-engine"
tags: ["Decision Engine"]
---

# Execute the Decision Engine

`POST /blaize/decision-engine`

## Request

- Base URL: `https://demo-site`
- URL: `https://demo-site/blaize/decision-engine`
- 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`

The Blaize Decision Engine can be invoked via the Public API to calculate an HTTP Response based upon Request-Level Rules created in the Admin Console. This functionality is built into the Blaize Dynamic CDN but the API variant is useful for CMS or edge side integrations.

## Request body

- object
  - `path` string, required
  - `http_method` string
  - `session` string
  - `foreign_keys` object: Foreign system and ID used to identify the user.
  - `request_headers` object
    - `User-Agent` string
  - `content_metadata` object
    - `publishedDate` string
  - `jwt` string
  - `btr` string: MD5-hex-encoding of: path + "|" + trusted referrer secret

## Response `200`

OK

- AccessDecisionResponse
  - `status` string
  - `body` string
  - `Location` string

## Other responses

- `409`: Conflict

---

[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)
