Decision Engine
Execute the Decision Engine
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.
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
Request body
Example request
{
"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"
}Response
OK
Example response
{
"status": "301",
"body": "Redirecting to login page...",
"Location": "/login.html"
}Changes
No recorded changes to this operation across all 2 revisions of this API.