Hanzo
OpenapiKnowledge

Pulls the provider's documents for the caller's org and files them as knowledge…

Pulls the provider's documents for the caller's org and files them as knowledge sources, which the store's own hook then indexes — so a synced document is…

POST /v1/knowledge/connectors/{provider}/sync

Addresshttps://api.hanzo.ai/v1/knowledge/connectors/{provider}/sync
MethodPOST
Operationpost_knowledge_connectors_by_provider_sync
AuthAuthorization: Bearer $HANZO_API_KEY

Pulls the provider's documents for the caller's org and files them as knowledge sources, which the store's own hook then indexes — so a synced document is retrievable exactly like a hand-written page. The org is the validated tenant and the credential is read from KMS, so an org can only ever sync its own connection. A provider failure is reported honestly (502) and recorded on the connector rather than silently swallowed.

Request

1 field.

FieldInTypeRequiredDescription
providerpathstringyesProvider is the connector to act on: github, slack, google or notion.

Response

StatusBodyMeaning
200kbSyncOutok

200 body — 2 fields.

FieldInTypeAlwaysDescription
ingestedbodyintegerIngested is how many documents landed in the org's knowledge store.
providerbodystringProvider is the connector that was pulled.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Knowledge API · All Hanzo APIs · Interactive reference

How is this guide?

On this page