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
| Address | https://api.hanzo.ai/v1/integrations/github/repos |
| Method | GET |
| Operation | get_integrations_github_repos |
| Auth | Authorization: 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
| Status | Body | Meaning |
|---|---|---|
200 | githubReposOut | ok |
200 body — 10 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
repos | body | githubRepoView[] | — | Repos is every repo the installation grants. |
repos[].defaultBranch | body | string | — | DefaultBranch is the repo's default branch at GitHub. |
repos[].fullName | body | string | — | FullName is GitHub's owner/name. |
repos[].htmlUrl | body | string | — | HTMLURL is the repo's page at GitHub. |
repos[].imported | body | boolean | — | Imported is whether this repo has been mirrored into git.hanzo.ai. |
repos[].lastSyncedAt | body | string | — | LastSyncedAt is the last successful mirror, RFC 3339 UTC. |
repos[].name | body | string | — | Name is the repository's short name within the installation. |
repos[].private | body | boolean | — | Private is GitHub's visibility bit for the repo. |
repos[].syncStatus | body | string | — | SyncStatus is "synced", "conflict", or "" when the repo is not imported. |
unread | body | string[] | — | 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 listimport { Configuration, IntegrationsApi } from 'hanzoai';
const api = new IntegrationsApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getIntegrationsGithubRepos();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import IntegrationsApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = IntegrationsApi(client).get_integrations_github_repos()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.IntegrationsAPI.GetIntegrationsGithubRepos(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, integrations_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = integrations_api::get_integrations_github_repos(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.IntegrationsApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new IntegrationsApi(client).getIntegrationsGithubRepos();curl https://api.hanzo.ai/v1/integrations/github/repos \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches integrations through the integrations tool, which names its 45 operations with its own verbs — this one among them, under a name only the door declares. describe explains any of them:
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "describe",
"arguments": {
"op": "list_connectors"
}
}
}'How is this guide?