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/engineAll 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
| Scope | Allows |
|---|---|
read | Only GET requests. |
write | Everything read allows, plus changes to migrations and validation runs. |
admin | Everything 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.
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
}| Status | Typical cause |
|---|---|
| 400 | Invalid input (code: "VALIDATION", with details) or an unsupported combination. |
| 401 | Missing, invalid or revoked API key or session. |
| 402 | A plan limit was reached — for example the monthly data allowance or live-sync channels. |
| 403 | Your role or key scope doesn't allow this action, or your IP isn't on the allowlist. |
| 404 | The resource doesn't exist in your workspace. |
| 409 | Conflicting state — starting a migration that is already running, cutting over twice. |
| 429 | Rate limited. Wait for Retry-After seconds. |
| 5xx | Something went wrong on our side. Safe to retry with back-off. |
Rate limits
| Limit | Value |
|---|---|
| Per API key | 300 requests / minute |
| Per user, all requests | 600 requests / minute |
| Calls that reach your databases (test, list databases, introspect, validate) | 30 / minute |
| Team invites | 20 / 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.jsonReal-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.
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.