GET /api/repo/orgs
Returns all GitHub organizations the authenticated user belongs to, with the user’s personal account prepended to the list. Requires JWT. The server fetchesGET /user/orgs and GET /user from the GitHub API in parallel and merges the results. The personal account always appears first so it can be used as the default selection in a repo picker.
Curl example
Response
Response fields
array
required
Ordered list of accounts. The first entry is always the authenticated user’s personal account; subsequent entries are their GitHub organizations.
string
The GitHub login (username or organization slug). Pass this value as the
org query parameter to GET /api/repo/repos.string
URL of the account’s GitHub avatar image.
GET /api/repo/repos
Returns repositories for a given organization or personal account. If theorg parameter matches the authenticated user’s own login, the server fetches personal repos owned by that user (sorted by creation date, descending). For any other value, it fetches repos belonging to that organization.
Requires JWT.
Query parameters
string
GitHub login of the organization or personal account whose repositories you want to list. Defaults to the authenticated user’s own login if omitted.
number
Page number for pagination. Defaults to
1. Each page returns up to 100 repositories.Curl example
Response
Response fields
array
required
List of repositories for the requested account or organization.
string
Repository name (without the owner prefix).
string
The repository’s default branch (e.g.,
main or master). Use this as the default value for the branch field when creating a project.string
The HTTPS URL of the repository on GitHub (e.g.,
https://github.com/owner/repo). Pass this as repoUrl when creating a project.string
GitHub login of the repository owner.
string
ISO 8601 timestamp of the last push to the repository, as reported by GitHub.