Skip to content

Decision Engine

Invoke the decision engine

Request

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

Security
ZephrHmacHttp
Bodyapplication/json
pathstringrequired
Example:"/x.html"
http_methodstring
Example:"POST"
sessionstring
Example:"xxx-xxx-xxx"
foreign_keysobject

Foreign system and ID used to identify the user

Example:
{}
request_headersobject
Example:
{ "User-Agent": "<userAgent>" }
content_metadataobject
Example:
{ "publishedDate": "<contentAge>" }
jwtstring
Example:"xxx-xxx-xxx"
btrstring

MD5-hex-encoding of: path + "|" + trusted referrer secret

Example:"17e74b9e49e66282e55d4b7ec73de951"
{ "path": "/x.html", "http_method": "POST", "session": "xxx-xxx-xxx", "foreign_keys": {}, "request_headers": { "User-Agent": "<userAgent>" }, "content_metadata": { "publishedDate": "<contentAge>" }, "jwt": "xxx-xxx-xxx", "btr": "17e74b9e49e66282e55d4b7ec73de951" }

Responses

OK

Headers
any
Bodyapplication/json
statusstring
Example:"301"
bodystring
Example:"Redirecting to login page..."
headersobject(headers)
Response
{ "status": "301", "body": "Redirecting to login page...", "headers": { "Location": "/login.html" } }