API Access
REST API for programmatic schema migration. Integrate MigraFlow into your internal tools and automation pipelines.
REST API Endpoints
Programmatic access to every migration capability. OpenAPI 3.0 spec available.
/api/v1/migrations/analyzeAnalyze DDL and return schema structure with risk assessment
/api/v1/migrations/generateGenerate migration to target dialect (Prisma, TypeORM, SQL, etc.)
/api/v1/migrations/:idRetrieve migration result with diff, risk score, and export files
/api/v1/migrations/:id/downloadDownload export files (Prisma, TypeORM, SQL, JSON, CSV)
/api/v1/migrations/:id/validateValidate migration output against target dialect constraints
/api/v1/workspaces/:id/usageGet current usage, quota, and remaining schemas for workspace
/api/v1/workspaces/:id/historyList migration history with filters and pagination
/api/v1/transformationsCreate custom regex transformation rules for naming
Built for integration
RESTful, versioned, authenticated. Integrate in minutes, not days.
API Key Authentication
Bearer token auth with Enterprise keys. Scoped per workspace. Rate limited, auditable, revocable.
OpenAPI 3.0 Spec
Full OpenAPI 3.0 specification. Generate SDKs in TypeScript, Python, Go. Auto-updated on changes.
Async Job Processing
Large migrations run asynchronously. Poll for status or configure webhooks for completion callbacks.
Webhook Notifications
Subscribe to migration.completed, migration.failed, risk.detected events. Retry with exponential backoff.
Multi-Region Support
EU and US endpoints available. Data residency configurable per workspace. Latency-optimized routing.
Idempotency Keys
Safe retries with Idempotency-Key header. Duplicate requests return same result without side effects.
Example: Generate Migration
/api/v1/migrations/generateRequires Enterprise tiercurl -X POST https://api.migraflow.com.br/api/v1/migrations/generate \
-H "Authorization: Bearer ent_************" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: migration-$(date +%s)" \
-d '{
"legacy_ddl": "CREATE TABLE users (id INT PRIMARY KEY, name VARCHAR(100))",
"source_dialect": "MySQL",
"target": "prisma",
"options": {
"risk_threshold": "medium",
"include_risk_analysis": true,
"naming_convention": "camelCase"
}
}'Integrate migration into your platform
Enterprise tier includes API access. Start a pilot to get your API key and OpenAPI spec.
Request an Assessment