Get GitHub connection
Changed on<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. After a user disconnects the app, previous_repository names the repository Reconnect a GitHub repository can bring back.
Request
- Base URL: https://app.base44.com
- URL: https://app.base44.com/api/apps/{app_id}/github/connection
- Auth: HTTP bearer
Path parameters
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"
}
}Changes
- info
the endpoint scheme security
PersonalAccessTokenAuthwas added to the API
- info
- info
added the optional property
to the response with the status
- info