/v1/git-connections/github-app/installationsReturns the GitHub accounts and organizations connected to this workspace, most recently connected first.
Each connection lists dependent_deployments: the workspace's deployments that build from
that GitHub account's repositories and would stop building if the connection were removed.
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.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The workspace's GitHub connections. Empty when none are connected.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the connection in this workspace.
providerstringRequiredGit provider. Always github_app.
One ofgithub_app
installation_idintegerRequiredGitHub's ID for the app installation.
account_loginstringGitHub login of the account or organization the app is installed on.
account_typestringGitHub account type, as reported by GitHub (for example User or Organization).
repository_selectionstringWhether the app can access all repositories of the account or only selected ones, as reported by GitHub.
connected_atstring (date-time)When the connection was last made or refreshed.
connected_bystringUsername of the member who connected the GitHub account. Omitted if unknown.
connected_by_former_memberbooleanPresent and true when the member who connected it has since left the workspace. The connection keeps working until it is disconnected.
dependent_deploymentsarray of stringsRequiredNames of the workspace's deployments that build from this GitHub account's repositories.
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. |
Errors use the standard error format.