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
Ordered list of accounts. The first entry is always the authenticated user’s personal account; subsequent entries are their GitHub organizations.
The GitHub login (username or organization slug). Pass this value as the
org query parameter to GET /api/repo/repos.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
GitHub login of the organization or personal account whose repositories you want to list. Defaults to the authenticated user’s own login if omitted.
Page number for pagination. Defaults to
1. Each page returns up to 100 repositories.Curl example
Response
Response fields
List of repositories for the requested account or organization.
Repository name (without the owner prefix).
The repository’s default branch (e.g.,
main or master). Use this as the default value for the branch field when creating a project.The HTTPS URL of the repository on GitHub (e.g.,
https://github.com/owner/repo). Pass this as repoUrl when creating a project.GitHub login of the repository owner.
ISO 8601 timestamp of the last push to the repository, as reported by GitHub.
Error responses
| Status | Condition |
|---|---|
400 | The authenticated user record was not found in the database |
401 | JWT is missing or invalid |