Skip to content

List GitHub App installations

GET/v1/git-connections/github-app/installations

Returns 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-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The workspace's GitHub connections. Empty when none are connected.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Unique identifier of the connection in this workspace.

providerstringRequired

Git provider. Always github_app.

One ofgithub_app

installation_idintegerRequired

GitHub's ID for the app installation.

account_loginstring

GitHub login of the account or organization the app is installed on.

account_typestring

GitHub account type, as reported by GitHub (for example User or Organization).

repository_selectionstring

Whether 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_bystring

Username of the member who connected the GitHub account. Omitted if unknown.

connected_by_former_memberboolean

Present and true when the member who connected it has since left the workspace. The connection keeps working until it is disconnected.

dependent_deploymentsarray of stringsRequired

Names of the workspace's deployments that build from this GitHub account's repositories.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.

Errors use the standard error format.