Endpoints
All paths are relative to https://nosqlsync.com/engine and require an API key.
Connections
List saved connections. Credentials are never returned — each item has id, name, type, dbType and endpoint (host).
Save a connection. Admin only. Supports Idempotency-Key.
Test credentials without saving them. Body: { dbType, credentials }. Returns { ok, latencyMs } or { ok: false, message }.
Rename a connection or replace its credentials. Body: { name?, credentials? }. Admin only.
Delete a connection. Admin only.
Re-test a saved connection.
List databases (or schemas, for PostgreSQL) on a source.
List collections or tables in a database. Query: ?database=.
{
"name": "Production Mongo",
"type": "source", // "source" | "target"
"dbType": "mongodb", // see Sources and Targets for valid values
"credentials": { "uri": "mongodb+srv://…" }
}Valid dbType values: mongodb, dynamodb, firestore, cosmosdb, cassandra, couchbase, postgresql, mysql, mariadb, mssql, redshift, bigquery, snowflake, clickhouse. Credential fields for each are on the Sources and Targets pages.
Migrations
List migrations, newest first, as { migrations: [...] }.
Create a migration. Returns { id, name, status: "created" }. Supports Idempotency-Key.
Get a migration with its status, progress, record counts, last error and latest validation.
Update driftPolicy or lagAlertThresholdMs. Admin only.
Delete a migration. It must be stopped first (409 otherwise). Tables already written to the target are not dropped. Admin only.
{
"name": "orders → postgres",
"sourceConnectionId": "3f1c…",
"targetConnectionId": "a92d…",
"sourceDatabase": "shop",
"sourceCollection": "orders",
"targetTable": "orders",
"mode": "one-time", // "one-time" | "cdc" | "dual-write"
"driftPolicy": "add_column", // optional: "add_column" | "ignore" | "alert_and_pause"
"groupId": "…", "groupName": "…" // optional: group related migrations together
}Actions
| Endpoint | Effect |
|---|---|
POST /migrations/:id/start | Queue the migration. Requires a schema mapping. 409 if already active, 402 if over a plan limit. |
POST /migrations/:id/pause | Pause a running or queued live sync. |
POST /migrations/:id/resume | Resume a paused live sync. |
POST /migrations/:id/stop | Cancel the job and set status to stopped. |
POST /migrations/:id/cutover | Dual-write only, admin only. See Cutover. |
POST /migrations/:id/validate | Run a validation and return the report. See Validation. |
Schema
Get the current schema mapping.
Sample the source and propose a mapping. Optional body: { nestedDecisions: { "<path>": "flatten" | "jsonb" | "child-table" } }.
Save a mapping. Body: { mappings: [{ sourceField, targetColumn, sqlType, nullable, isPrimaryKey }] }. See Schema mapping.
Monitoring
Server-Sent Events stream of log lines.
Throughput and, for live sync, replication lag.
Schema drift events. See Schema drift.
All validation runs for the migration.
Lag and throughput for every live sync in the workspace.
Server-Sent Events stream of status and progress changes for the whole workspace. Supports Last-Event-ID.
Validation runs
Download a report. Query: ?format=md (default) or ?format=json.
Create a public read-only link. Returns { sharePath: "/reports/…" }. Admin only.
Revoke the public link. Admin only.
Webhooks
List webhook endpoints.
Create an endpoint. Body: { url, events: ["migration.completed", …] }. Returns the signing secret once.
Rotate the signing secret. The new secret is returned once.
Send a test event to the endpoint.
Delete an endpoint.
API keys
List your keys (prefix, scope, environment, last used).
Create a key. Body: { name, scope?: "read" | "write" | "admin", env?: "Production" | "Staging" }. The raw key is returned once.
Revoke a key immediately.
Team and workspace
List members and pending invites.
Invite someone. Body: { email, role: "admin" | "member" }. Admin only.
Change a member's role. Owner only.
Remove a member or cancel an invite. Admin only.
Audit events, newest first. Admin only; requires the Team plan or above.
The authenticated user.