Skip to main content
These endpoints are served by the Flock Bridge sidecar on localhost:5102. The Bridge listens only on loopback for the signed-in user, so the routes are unauthenticated locally. Flock itself is a Pro feature and requires a Pidgeon account.

POST /api/flock/connect

Connect to a database and analyze its schema.
curl

GET /api/flock/schema

Get the analyzed schema from the last connection.
curl

POST /api/flock/learn

Learn statistical distributions from existing rows.
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.
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 the generated population.
curl

POST /api/flock/seed/dry-run

Preview the seed plan without executing.
curl

DELETE /api/flock/seed/cleanup

Remove all synthetic data from the database.
curl

GET /api/flock/compliance/

Get the no-PHI attestation for a generation job. It confirms the population is synthetic-only and reports whether any PHI was detected.
curl