List GitHub organizations

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Lists the GitHub accounts you can create the app's repository in. Your personal account comes first, then your organizations alphabetically.

Only accounts with the Base44 GitHub App installed appear, so install it on the account you want before you call this. Your own GitHub account also has to be connected to Base44, which you do in the Base44 online app editor rather than through this API.

When the app's workspace limits GitHub repositories to approved organizations, this returns only the approved ones, and otherwise it returns all of them. Call Get GitHub organization policy to see whether that limit is on.

If you're a workspace owner or admin, this list is filtered by the limit even though you aren't bound by it, so it can leave out an organization you're allowed to connect under.

get/api/apps/{app_id}/github/organizations

Path parameters

app_idstring required

ID of the app whose workspace decides which GitHub organizations you can use.

ID of the app whose workspace decides which GitHub organizations you can use.

Response

The GitHub accounts you can create the app's repository in.

idinteger required

GitHub's numeric ID for the account.

loginstring required

GitHub username or organization name. Pass it as org_name to Connect a GitHub repository.

avatar_urlstring required

URL of the account's GitHub profile picture.

installation_idstring required

ID of the Base44 GitHub App installation on this account. Pass it as installation_id to Connect a GitHub repository.

type'User' | 'Organization' required

Either User for your personal account or Organization for an organization.

repository_selection'all' | 'selected'

Whether the Base44 GitHub App can reach all repositories in this account or only chosen ones. Either all or selected. You can't create a new repository under an account set to selected, so switch that account to all repositories in GitHub first, under Settings > Applications > Base44 > Repository access.

Example response

[
  {
    "id": 1024547,
    "login": "base44",
    "avatar_url": "https://avatars.githubusercontent.com/u/1024547?v=4",
    "installation_id": "58231904",
    "type": "Organization",
    "repository_selection": "all"
  }
]

Changes