# Ten-minute quickstart (/docs/getting-started/quickstart)



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](/docs/getting-started).

## 1. Start the stack (about 3 minutes) [#1-start-the-stack-about-3-minutes]

```bash
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 :5173
```

Open `http://localhost:5173` and sign in with the [seeded account](/docs/getting-started/installation).
Change that password before the stack is anything other than local.

## 2. See a decision run (about 2 minutes) [#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) [#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](/docs/guides/publishing) and [Versioning](/docs/concepts/versioning).

## 4. Call it over HTTP (about 1 minute) [#4-call-it-over-http-about-1-minute]

```bash
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](/docs/getting-started/api-quickstart).

## 5. Read the record (about 1 minute) [#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.

## Where next [#where-next]

<Cards>
  <Card title="Your first decision" description="Build one from scratch instead of editing the sample." href="/docs/getting-started/first-decision" />

  <Card title="Expression reference" description="Every function and operator you can use in a condition or formula." href="/docs/reference/expressions" />

  <Card title="Test cases and backtesting" description="Prove a change before it reaches production." href="/docs/guides/test-cases" />

  <Card title="Secure deployment" description="What to change before anything but local." href="/docs/operate/secure-deployment" />
</Cards>
