POST /api/v1/generate/sql
Returns generated PostgreSQL INSERT SQL as file stream.
{
"table_definition": "CREATE TABLE users (id BIGSERIAL, email TEXT, active BOOLEAN, profile JSONB)",
"rows": 1000,
"options": {
"batch_size": 500
}
}
curl -X POST https://nitty-witty.com/postgres-random-data-generator/api/v1/generate/sql \
-H "Content-Type: application/json" \
-d '{
"table_definition":"CREATE TABLE users(id BIGSERIAL,email TEXT,created_at TIMESTAMPTZ)",
"rows":200
}' --output generated-postgres.sql
Numeric, text, boolean, temporal, UUID, JSON/JSONB, BYTEA, arrays, network, and geometric types with fallback for custom/user-defined types.