Get GitHub connection
<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Returns the app's GitHub repository connection, if it has one.
Calling this re-checks the connection against GitHub and tries to repair a broken one, so what it reports can change between two calls even when nobody has touched the app.
An app that never connected and one whose repository was disconnected both report connected: false. The second also carries previous_repository, the repository the app can be reconnected to (set only after a user-initiated disconnect).
get/api/apps/{app_id}/github/connection
Path parameters
app_idstring required
ID of the app whose GitHub connection to use.
ID of the app whose GitHub connection to use.
Response
The app's GitHub connection.
Example response
{
"connected": true,
"repo_full_name": "base44/lead-tracker",
"repo_url": "https://github.com/base44/lead-tracker",
"clone_urls": {
"https": "https://github.com/base44/lead-tracker.git",
"ssh": "git@github.com:base44/lead-tracker.git",
"gh_cli": "gh repo clone base44/lead-tracker"
},
"org_name": "base44",
"installation_id": "58231904",
"webhook_active": true,
"connected_by_user_id": "6820f3a4e7b91d003c45a1f0",
"previous_repository": {
"repo_full_name": "base44/lead-tracker",
"repo_url": "https://github.com/base44/lead-tracker",
"org_name": "base44"
}
}