/ API / API overview
Docs/API/API overview

API overview

Everything the dashboard does goes through the same REST API, so you can script connections, migrations and validation from CI or your own tools.

Base URL

https://nosqlsync.com/engine

All requests and responses are JSON. Paths in these docs are relative to the base URL — GET /migrations means GET https://nosqlsync.com/engine/migrations.

Authentication

Create a key in Settings → Developers → API keys and send it as a bearer token:

curl https://nosqlsync.com/engine/migrations \
  -H "Authorization: Bearer nss_9f2c…"
  • Keys start with nss_ and are shown once. NoSQLSync stores only a hash; the dashboard shows the first characters so you can tell keys apart.
  • A key acts as the user who created it, with that user's workspace role.
  • API access is included on the Developer plan and above.

Scopes

ScopeAllows
readOnly GET requests.
writeEverything read allows, plus changes to migrations and validation runs.
adminEverything the creating user can do, including connections, webhooks and team management.

If you omit scope, the key gets admin. Give CI pipelines the narrowest scope that works — a dashboard that only reads status should get a read key.

Create a key over the API
POST /api-keys
{ "name": "github-actions", "scope": "write", "env": "Production" }

→ 201 { "id": "…", "name": "github-actions", "prefix": "nss_9f2c…", "scope": "write", "env": "Production", "rawKey": "nss_…" }

Errors

Errors use standard HTTP status codes and a consistent body:

{
  "message": "Live sync isn't available for cassandra sources.",
  "code": "CDC_UNSUPPORTED_SOURCE",
  "details": { … }        // optional, e.g. field-level validation issues
}
StatusTypical cause
400Invalid input (code: "VALIDATION", with details) or an unsupported combination.
401Missing, invalid or revoked API key or session.
402A plan limit was reached — for example the monthly data allowance or live-sync channels.
403Your role or key scope doesn't allow this action, or your IP isn't on the allowlist.
404The resource doesn't exist in your workspace.
409Conflicting state — starting a migration that is already running, cutting over twice.
429Rate limited. Wait for Retry-After seconds.
5xxSomething went wrong on our side. Safe to retry with back-off.

Rate limits

LimitValue
Per API key300 requests / minute
Per user, all requests600 requests / minute
Calls that reach your databases (test, list databases, introspect, validate)30 / minute
Team invites20 / hour per workspace

Rate-limited responses include RateLimit-Limit, RateLimit-Remaining and Retry-After headers.

Idempotent requests

POST /connections and POST /migrations accept an Idempotency-Key header. Retrying with the same key within 24 hours returns the original result instead of creating a duplicate — use it in CI so a retried job doesn't create two migrations.

curl -X POST https://nosqlsync.com/engine/migrations \
  -H "Authorization: Bearer $NOSQLSYNC_API_KEY" \
  -H "Idempotency-Key: deploy-4812-orders" \
  -H "Content-Type: application/json" \
  -d @migration.json

Real-time updates

Instead of polling, subscribe to Server-Sent Events: GET /events streams status and progress changes for your workspace, and GET /migrations/:id/logs streams a migration's log lines. Both support Last-Event-ID for reconnects. For server-to-server notifications, use webhooks.

i
Versioning

The API isn't versioned in the URL. New fields can appear in responses at any time, so ignore fields you don't recognise. Notable changes are listed in the changelog.

Next

Browse every endpoint in the endpoint reference.