Hanzo
OpenapiSync

List returns every sync link the caller's org has, each with its two endpoints,…

List returns every sync link the caller's org has, each with its two endpoints, its direction and trigger policy, and the time it last reconciled.

GET /v1/sync

Addresshttps://api.hanzo.ai/v1/sync
MethodGET
Operationget_sync
AuthAuthorization: Bearer $HANZO_API_KEY

List returns every sync link the caller's org has, each with its two endpoints, its direction and trigger policy, and the time it last reconciled. Scoped to the caller's own org — another tenant's links are structurally unreachable.

Request

GET /v1/sync takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200syncListok

200 body — 16 fields.

FieldInTypeAlwaysDescription
databodysyncView[]Data is the org's syncs, each with its endpoints, policy and last-synced time.
data[].actorbodystringActor is the identity a reconcile writes AS.
data[].createdAtbodystringCreatedAt is when the link was first declared, RFC3339 in UTC.
data[].directionbodystringDirection is which way work flows: "both", "pull" (target ← source), "push" (source → target), or "off" — which keeps the link declared and moves nothing.
data[].idbodystringID is the link's handle, derived from its source and target — which is what makes re-declaring the same pair an update rather than a duplicate.
data[].kindbodystringKind is what is being synced.
data[].sourcebodyendpointView
data[].source.connectorbodystringConnector names a connected account from the org's connector registry, when the endpoint reaches its provider through one.
data[].source.locatorbodystringLocator addresses the thing INSIDE that provider, in the provider's own terms — an https clone URL for a hosted forge, a bare repository name for hanzo-git.
data[].source.providerbodystringProvider is the concrete integration: "github", "gitlab" or "hanzo-git".
data[].targetbodyendpointView
data[].target.connectorbodystringConnector names a connected account from the org's connector registry, when the endpoint reaches its provider through one.
data[].target.locatorbodystringLocator addresses the thing INSIDE that provider, in the provider's own terms — an https clone URL for a hosted forge, a bare repository name for hanzo-git.
data[].target.providerbodystringProvider is the concrete integration: "github", "gitlab" or "hanzo-git".
data[].triggerbodystringTrigger is what starts a reconcile: "webhook" (the provider tells us), "poll" (we ask on a schedule), or "manual" (only an explicit call).
data[].updatedAtbodystringUpdatedAt is bumped by every reconcile, so it reads as the LAST-SYNCED time rather than the last edit.

Failure carries the platform error shape — see Errors.

Examples

hanzo sync list

Sync API · All Hanzo APIs · Interactive reference

How is this guide?

On this page