API Access

API Access

REST API for programmatic schema migration. Integrate MigraFlow into your internal tools and automation pipelines.

Request an Assessment
Expert-led delivery·Self-service available

REST API Endpoints

Programmatic access to every migration capability. OpenAPI 3.0 spec available.

POST/api/v1/migrations/analyze

Analyze DDL and return schema structure with risk assessment

POST/api/v1/migrations/generate

Generate migration to target dialect (Prisma, TypeORM, SQL, etc.)

GET/api/v1/migrations/:id

Retrieve migration result with diff, risk score, and export files

GET/api/v1/migrations/:id/download

Download export files (Prisma, TypeORM, SQL, JSON, CSV)

POST/api/v1/migrations/:id/validate

Validate migration output against target dialect constraints

GET/api/v1/workspaces/:id/usage

Get current usage, quota, and remaining schemas for workspace

GET/api/v1/workspaces/:id/history

List migration history with filters and pagination

POST/api/v1/transformations

Create 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

POST/api/v1/migrations/generateRequires Enterprise tier
curl -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