Ten-minute quickstart
From a clean checkout to a published decision answering over HTTP, with its trace.
This path uses the seeded sample decision, so you see a real answer before building anything. Each step links to the page that goes deeper. You need the prerequisites.
1. Start the stack (about 3 minutes)
bun install
docker compose up -d # Postgres and Redis
cp apps/api/.env.example apps/api/.env # then set the secrets it asks for
bun run db:migrate && bun run db:seed # the seed prints an API key once: copy it
bun run dev # API on :3100, console on :5173Open http://localhost:5173 and sign in with the seeded account.
Change that password before the stack is anything other than local.
2. See a decision run (about 2 minutes)
Open Decisions → transaction-monitoring, then Simulate and press Run with the prefilled payload. You get three things:
- the outcome (
HOLD) and the actions it asks for, - the reasons: each rule's actual value against what it expected,
- the trace: every node, in order.
A simulation never sends an alert or a webhook, so it is safe to repeat.
3. Change a rule and publish (about 3 minutes)
Open the Flow builder and select the condition that compares amount with 10000. Change the
threshold, run Simulate again with amount between the old and the new value, and watch the
outcome change. When it behaves as intended, choose Publish, describe the change and give it a
label such as stable.
Publishing freezes an immutable version. Nothing an application calls changed until this step: see Publishing and Versioning.
4. Call it over HTTP (about 1 minute)
export DECISION_API_KEY=<the key the seed printed>
curl -s -X POST http://localhost:3100/api/v1/decisions/transaction-monitoring/execute \
-H 'content-type: application/json' \
-H "x-api-key: $DECISION_API_KEY" \
-d '{"customer_id":"C-1001","amount":15000,"currency":"USD","country":"DO"}'The response carries decision, outputs, actions, reasons and execution_id. Pin a version
with ?version=2 or ?version=tag:stable: see API quickstart.
5. Read the record (about 1 minute)
Open Executions and find the execution_id from the response. It holds the input, the output
and the full trace: the same record a support engineer or an auditor reads, so what you debugged in
the simulator is what you can explain later.