Account, keys and webhooks ›
Begin git hub connection
POST
/v1/github/connectBegin git hub connection.
Requestcurl
- curl -X POST https://agental.io/v1/github/connect \
- -H "Authorization: Bearer $AGENTAL_API_KEY"
Answer200 OK · GitHubConnectStart
- {
- "url": string,
- }
Where to send the browser: GitHub's page that installs the App, with a state good for 30 minutes for this person and organization.
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 Where to send the browser: GitHub's page that installs the App, with a state good for 30 minutes for this person and organization.
GitHubConnectStart1 field
urlstring
Errors and other answers
| 403 | session_required, or |
| 403 | forbidden only an owner or an admin of the organization. |
| 409 | github_not_available runs-on, or the App's sign-in, is not set up on this deployment. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.