Get GitHub connection
Returns the app’s GitHub repository connection, or connected: false when it has none.
Reading this refreshes the connection’s health as a side effect: an active connection is re-checked against GitHub, and one in error or revoked is retried, so status can change between two calls with nobody touching the app.
connected is false for an app that never connected and for one whose repository was disconnected, and the rest of the fields are then null, so the two cases are indistinguishable here. A connection GitHub revoked, or one that hit an error, is still connected: true; status is what tells you it needs repair.
Read webhook_active here. While it is false on a connected app, GitHub isn’t telling Base44 about pushes, so nothing pulls automatically and you have to call Pull changes from GitHub yourself.
Authorizations
Personal API key.
Path Parameters
ID of the app whose GitHub connection to use.
Response
The app's GitHub connection.
Current connection status for an app.
true when the app still has its repository connection, including one whose status is error or revoked. false only when the app never connected and when its repository was disconnected.
true
Full repository name, as owner/repo. null when connected is false.
"base44/lead-tracker"
URL of the repository on GitHub. null when connected is false.
"https://github.com/base44/lead-tracker"
URLs and CLI command for cloning the repository. null when connected is false.
GitHub username or organization that owns the repository. null when connected is false.
"base44"
Health of the connection. active works normally, error hit a technical failure, and revoked means the GitHub App access was withdrawn. The last two still report connected: true, so this is the field that tells you the connection needs repair. null when connected is false.
active, disconnected, error, revoked "active"
ID of the Base44 GitHub App installation backing this connection. null when connected is false, and on a connection stored without one.
"58231904"
true when the repository has the Base44 webhook that triggers automatic pulls. While this is false on a connected app, GitHub isn't telling Base44 about pushes, so nothing arrives until you pull.
true
ID of the Base44 user who connected the repository. null when connected is false.
"6820f3a4e7b91d003c45a1f0"