Skip to main content
The GitHub API manages GitHub App installations that grant Springwinter read access to your repositories for builds and deployments. Installing the GitHub App on a GitHub account or organization lets Springwinter clone source code, detect pushes, and create per-branch preview environments automatically. Use these endpoints to start the install flow, complete it after the GitHub redirect, and manage existing installations.

Start the GitHub App Install Flow

POST /api/github/installation_setup Begin the GitHub App installation flow. Returns a redirect URL that you open in a browser to grant Springwinter access to your GitHub account or organization. After you approve the installation on GitHub, the flow completes automatically.
string
The GitHub URL to open in a browser. After the user approves the installation, GitHub redirects back to Springwinter, which completes the flow automatically.

List GitHub Installations

GET /api/github/installations Return all GitHub App installations connected to your Springwinter organization.
array
Array of GitHub App installation objects.

Complete the GitHub App Install

POST /api/github/installations Finalize the GitHub App installation after GitHub redirects back to Springwinter. In most cases, Springwinter completes this step automatically via the redirect handler — call this endpoint manually only if the automatic completion fails.
integer
required
The GitHub installation ID returned in the callback URL query parameter installation_id after the user approves the GitHub App.

Remove a GitHub Installation

DELETE /api/github/installations/ Remove a GitHub App installation record from Springwinter. This tells Springwinter to forget the installation — it stops being used for new builds and deployments. This action does not uninstall the GitHub App from GitHub itself.
Removing an installation from Springwinter does not uninstall the GitHub App. Any services configured to deploy from a repository in this installation will stop receiving automatic deployments. To fully revoke Springwinter’s access to your GitHub account, also uninstall the app from GitHub → Settings → Applications → Springwinter → Uninstall.
integer
required
The GitHub installation ID to remove from Springwinter.

List Repositories

GET /api/github/installations//repositories List all repositories accessible through a specific GitHub App installation. These are the repositories you granted Springwinter access to when you installed the GitHub App. Use this to discover which repos are available when configuring a web server, worker, or static website.
array
Array of repository objects accessible through the installation.
If a repository you expect to see is missing, check that it was included in the GitHub App’s repository access list. You can update the list from GitHub → Settings → Applications → Springwinter → Repository access.

When a build starts, Springwinter mints a short-lived GitHub installation token scoped to the specific repository being built. The token expires automatically and is not stored after the build completes. Springwinter never retains persistent GitHub credentials.