# Overview

SimData is a high-performance hosted synthetic records sampler. It is seeded, constrained, and dictionary-backed for engineering, QA, and load testing.

## Core principles

- **Deterministic joins:** The same seed keeps related fields and relational tables mathematically coherent.
- **High throughput:** Streaming binary Avro OCF supports multi-million record pipelines without server buffering.
- **Zero real PII:** Every record is synthetically synthesized from probabilistic models. Never submit real customer or confidential personal data.

> [!NOTE]
> SimHealth generates realistic data without copying existing production databases, ensuring complete privacy compliance and eliminating cross-border data transfer hurdles.

## Data flow

The primary client is the [developer CLI](cli.md). The web platform provides dictionary editing, wallet management, and API key provisioning.

```bash
curl -fsSL https://simdata.interoperabilitypro.com/install.sh | sh
simhealth login
simhealth projects use default
simhealth sample person --count 1 --seed 1842
```

1. Install the CLI and run `simhealth login`.
2. Choose a dictionary project (`simhealth projects use ID`, or create one).
3. Edit that project's dictionary on the website at `/projects/{project_id}/dictionary`.
4. Sample with `simhealth sample person --count 1 --seed 1842`. The same seed replays the exact same draw.
5. Use the JSON or Avro output in test fixtures, Kafka topics, or data warehouses.

> [!TIP]
> Dictionary projects keep unrelated domains completely isolated. For example, a pest-control project and an educational learning project maintain disjoint vocabularies and record schemas under the same account.

## HTTP API

Machine clients that already hold a project-bound API key call the same sampler over HTTP. The developer CLI is a thin client over these routes.

| Method and path | Description | Auth |
| --- | --- | --- |
| `GET /v1/projects/{project_id}/random/{recordType}` | Sample coherent synthetic records | Bearer API key. Optional `x-customer-id` ledger override. |
| `GET /v1/projects/{project_id}/catalog` | List dictionary definitions and compiled manifest | Bearer API key |
| `GET /v1/stats/records` | Public generation counter | Public |

The unscoped `/v1/random/{recordType}` and `/v1/catalog` routes remain available as compatibility routes for existing integrations. New integrations should include the project ID explicitly.
