/v1/git-connections/github-app/repositoriesReturns every repository the GitHub App can access across all of the workspace's GitHub connections. Repositories are grouped by connection, most recently connected first, and a repository reachable through several connections is listed once.
Results are cached for a few minutes. After you change which repositories the app can access
on GitHub, send refresh=1 to bypass the cache.
Requires the secrets read permission (owner, admin or developer role).
Authentication
Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.
Query parameters
refreshstringSend 1 or true to fetch fresh results from GitHub instead of the cache. Any other value is ignored.
One of1true
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The repositories the GitHub App can access.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
idintegerRequiredGitHub's repository ID.
namestringRequiredRepository name.
full_namestringRequiredRepository in owner/name form. Use it as repo in other Git Connections endpoints.
ownerstringRequiredGitHub login of the repository owner.
privatebooleanRequiredWhether the repository is private.
default_branchstringRequiredThe repository's default branch.
clone_urlstringRequiredHTTPS clone URL.
html_urlstringRequiredRepository page on GitHub.
updated_atstring (date-time)When the repository was last updated on GitHub. Omitted if GitHub did not report it.
installation_idintegerGitHub installation ID of the connection that gives access to the repository.
installation_accountstringGitHub account of the connection that gives access to the repository.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | No GitHub account is connected to this workspace. |
500 | GitHub could not be reached or refused the request for one of the connections. |
Errors use the standard error format.