Account, keys and webhooks ›
Get git hub connection
GET
/v1/githubGet git hub connection.
Requestcurl
- curl https://agental.io/v1/github \
- -H "Authorization: Bearer $AGENTAL_API_KEY"
Answer200 OK · GitHubConnection
- {
- "available": boolean,
- "installations": [{
- "installationId": integer,
- "account": string,
- "accountType": string,
- "connectedAt": string,
- "repositorySelection": "all" | "selected" | "null" | null,
- "repositories": string[] | null,
- … 1 more
- }],
- }
Whether GitHub can be connected here, and the installations of the App connected to the organization.
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 Whether GitHub can be connected here, and the installations of the App connected to the organization.
GitHubConnection2 fields
availableboolean
installationsGitHubInstallation[]7 fields
installationIdinteger
accountstring
The GitHub user or organization the App is installed on.
accountTypestring
User or Organization.
connectedAtstring
repositorySelectionallselectednullnull
Whether the App may use all the account's repositories or those chosen.
More
Null where GitHub did not say.repositoriesstring[]null
The repositories the App may use, by full name.
More
Null where GitHub did not say.manageUrlstring
Where on GitHub the repositories it may use are changed, or the App uninstalled.
Errors and other answers
| 403 | session_required, or |
| 403 | forbidden only an owner or an admin of the organization. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.