Hanzo
OpenapiSync

Get returns one sync by id.

Get returns one sync by id. It is org-scoped: an id belonging to another tenant is the same 404 an unknown id gives, so a probe learns nothing about what…

GET /v1/sync/{id}

Addresshttps://api.hanzo.ai/v1/sync/{id}
MethodGET
Operationget_sync_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Get returns one sync by id. It is org-scoped: an id belonging to another tenant is the same 404 an unknown id gives, so a probe learns nothing about what exists.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the sync to act on, from the path.

Response

StatusBodyMeaning
200syncViewok

200 body — 15 fields.

FieldInTypeAlwaysDescription
actorbodystringActor is the identity a reconcile writes AS.
createdAtbodystringCreatedAt is when the link was first declared, RFC3339 in UTC.
directionbodystringDirection is which way work flows: "both", "pull" (target ← source), "push" (source → target), or "off" — which keeps the link declared and moves nothing.
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.
kindbodystringKind is what is being synced.
sourcebodyendpointView
source.connectorbodystringConnector names a connected account from the org's connector registry, when the endpoint reaches its provider through one.
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.
source.providerbodystringProvider is the concrete integration: "github", "gitlab" or "hanzo-git".
targetbodyendpointView
target.connectorbodystringConnector names a connected account from the org's connector registry, when the endpoint reaches its provider through one.
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.
target.providerbodystringProvider is the concrete integration: "github", "gitlab" or "hanzo-git".
triggerbodystringTrigger is what starts a reconcile: "webhook" (the provider tells us), "poll" (we ask on a schedule), or "manual" (only an explicit call).
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 get <id>

Sync API · All Hanzo APIs · Interactive reference

How is this guide?

On this page