Hanzo
OpenapiIntegrations

Lists the org's granted GitHub repositories, each annotated with its native…

Lists the org's granted GitHub repositories, each annotated with its native import + sync status from the git object plane.

GET /v1/integrations/github/repos

Addresshttps://api.hanzo.ai/v1/integrations/github/repos
MethodGET
Operationget_integrations_github_repos
AuthAuthorization: Bearer $HANZO_API_KEY

Lists the org's granted GitHub repositories, each annotated with its native import + sync status from the git object plane. Org-authed: the org comes from the validated principal, and the granted set is bounded to THAT org's installation token — an org can never enumerate another org's repos. The console polls it to watch an import flip a repo to imported.

Request

GET /v1/integrations/github/repos takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200githubReposOutok

200 body — 10 fields.

FieldInTypeAlwaysDescription
reposbodygithubRepoView[]Repos is every repo the installation grants.
repos[].defaultBranchbodystringDefaultBranch is the repo's default branch at GitHub.
repos[].fullNamebodystringFullName is GitHub's owner/name.
repos[].htmlUrlbodystringHTMLURL is the repo's page at GitHub.
repos[].importedbodybooleanImported is whether this repo has been mirrored into git.hanzo.ai.
repos[].lastSyncedAtbodystringLastSyncedAt is the last successful mirror, RFC 3339 UTC.
repos[].namebodystringName is the repository's short name within the installation.
repos[].privatebodybooleanPrivate is GitHub's visibility bit for the repo.
repos[].syncStatusbodystringSyncStatus is "synced", "conflict", or "" when the repo is not imported.
unreadbodystring[]Unread names the connected accounts this answer could NOT read, so a short list is distinguishable from a complete one. Absent when the answer is whole.

Failure carries the platform error shape — see Errors.

Examples

hanzo integrations github repos list

Integrations API · All Hanzo APIs · Interactive reference

How is this guide?

On this page