Blatent Documentation
Give Struct a task and a JSON Schema. Get a structured answer your application can use.
A decision with rulesjson
INPUT
“The upload failed when the connection dropped.”
YOUR SCHEMA RULERetry network errors. Never retry permission errors.
OUTPUT
{
"status": "error",
"code": "network",
"retry": true
}
Illustrative output · Explore conditional outputs
BUILD YOUR INTEGRATION
Find the capability you need.
Each guide stands on its own. Start with a request or go straight to a feature.
01
Define the answer
Choose fields, types and allowed values. Add descriptions that explain what each decision means.
JSON Schema02Make it reusable
Register an immutable schema version. Use the same contract across your application.
03Enforce business rules
Require the answer to satisfy rules about values, application state or permissions. Handle an explicit failure if no compliant answer is found.
OPAPICK UP WHERE YOU NEED TO