POST /api/flock/connect
Connect to a database and analyze its schema.| Field | Type | Description |
|---|---|---|
provider | string | postgres, mysql, sqlserver |
connectionString | string | Database connection string |
curl
GET /api/flock/schema
Get the analyzed schema from the last connection.curl
POST /api/flock/learn
Learn statistical patterns from existing sample data.curl
GET /api/flock/profiles
List learned profiles.curl
GET /api/flock/profiles/
Get a specific profile.curl
POST /api/flock/generate
Start a generation job. Returns a job ID for polling.| Field | Type | Default | Description |
|---|---|---|---|
count | int | 100 | Number of patients |
format | string | "sql" | sql, csv, hl7, fhir |
geographicFocus | string | "us" | Geographic distribution |
seed | int | null | Reproducible seed |
curl
GET /api/flock/generate/
Poll job status.curl
GET /api/flock/generate//analytics
Get analytics for a completed job.curl
POST /api/flock/seed
Seed the connected database with generated data.curl
POST /api/flock/seed/dry-run
Preview SQL without executing.curl
DELETE /api/flock/seed/cleanup
Remove all synthetic data from the database.| Query Param | Type | Description |
|---|---|---|
connectionString | string | Database connection |
provider | string | Database type |
curl
GET /api/flock/compliance/
Get a compliance report for a generation job.curl

