Skip to content

API reference

Read a sync run

GET
/v1/syncs/{runId}

Returns the current run record owned by the key’s workspace. A successful GET returns 200 for every run state, including in-progress and failed. Inspect state and errorCode; polling HTTP status does not indicate completion.

runId
required
string
/^[A-Za-z0-9_-]{1,128}$/

The current run record, including in-progress or failed states.

One of:

errorCode is conditionally present: required for failed and forbidden in every other state. The four nullable fields are always present — the gateway rejects an upstream response that omits them. Completed, partial and superseded records have non-null timezone and quality. Completed and superseded quality is reliable (both limitation flags false and no sampling); partial quality names at least one thresholding, loss or sampling limitation. A failed record retains null completion/publication fields and a required classified errorCode.

object
state
Allowed value: failed
completedAt
publishedDates

invalid_query — the URL carried a query delimiter, including a bare ?.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: invalid_query

unauthorized — missing, unknown, expired or revoked key.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: unauthorized
WWW-Authenticate
required
string
Allowed value: Bearer

forbidden — the key lacks sync:write.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: forbidden

run_not_found — no such run in this workspace.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: run_not_found

method_not_allowed — Allow names the method this route accepts.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: method_not_allowed
Allow
required
string
Allowed value: GET

rate_limited — the key’s or its workspace’s per-plan request allowance for this route’s class is used up. It is answered after authentication, on every API-key operation in this document and on MCP, and never on /health. A download link is limited the same way, after its lookup, by the key that issued it and the export’s workspace. Retry-After is the window in seconds and RateLimit-Limit is the limit of the bucket that refused. No remaining count is returned. The limits themselves are not published here.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed value: rate_limited
Retry-After
required
string
/^[1-9][0-9]*$/
RateLimit-Limit
required
string
/^[1-9][0-9]*$/

sync_unavailable, auth_unavailable, credential_configuration_unavailable, invalid_clickhouse_config, or ledger_unavailable.

The sync service builds and validates its dependencies before it reads the run, so configuration or ledger failures can be answered here. Extraction- only failures are not part of this polling operation’s contract.

object
error
required
object
code
required
string
message
required
string
error
object
code
Allowed values: sync_unavailable auth_unavailable credential_configuration_unavailable invalid_clickhouse_config ledger_unavailable