Skip to main content

Repositories API

Repositories are linked to projects for analysis. Corbulo connects to repositories via the GitHub App installation or can add public repositories directly.

List Repositories

Returns all repositories linked to a project.

Response Fields


Links one or more repositories to a project. Repositories must already be synced from a GitHub App installation.

Request Body

When repositories are linked, Corbulo automatically starts an onboarding workflow that clones the repository, detects analyzers, runs initial analysis, and generates architecture documentation. The onboarding_session_id can be used to track progress via the SSE event stream.

Add Public Repository

Adds a public GitHub repository to a project without requiring the GitHub App installation.

Request Body


Removes a repository from a project. This does not delete analysis data.
Returns 204 No Content on success.

List Available Repositories

Returns repositories accessible via the GitHub App installation that are not yet linked to the project. Use this to present a selection UI when adding repositories.

Sync GitHub Installations

Syncs GitHub App installations and their repositories. Call this after installing or reconfiguring the GitHub App to update the available repositories.

Request Body