Add by URL
| Field | Type | Required |
|---|---|---|
url | string | Yes |
https://github.com/owner/repo, https://github.com/owner/repo.git
List User Repos
requireAuth. Returns repositories owned by the authenticated user.
List GitHub Repos
requireAuth. Fetches the user’s GitHub repositories via the GitHub API. Requires GitHub to be connected.
Uses the GitHub token from (in order): x-github-token header, database, or local GitHub CLI.
Import Repository
requireAuth. Imports a GitHub repository.
| Field | Type | Required |
|---|---|---|
repo | object | Yes |
repo.id | number | Yes |
repo.full_name | string | Yes |
Active Repository
Get Active
requireAuth. Returns the user’s currently active repository.
Set Active
requireAuth. Deactivates all other repos and activates the specified one.
Update Base Branch
requireAuth.
| Field | Type | Required | Description |
|---|---|---|---|
baseBranch | string | Yes | Valid git branch name |
Public Repositories
For unauthenticated usage:| Endpoint | Description |
|---|---|
GET /api/repos/public | List public repos (no userId) |
GET /api/repos/active/public | Get active public repo |
POST /api/repos/:id/activate/public | Activate a public repo |

