Skip to content
sign in

Install the cup of ai GitHub App (browser flow)

GET /auth/github/install

Redirects to the App install screen on github.com; GitHub returns to /auth/github/setup. With a session, owner and repo preselect the account and the repo when the signed-in token can see them (both are pattern-checked; anything else is ignored). next=barista returns to the Setup tab afterwards. 404 auth_method_disabled when GitHub or the App slug is not configured.

Request

Parameters

  • next (query, "barista")
  • owner (query, string): A GitHub login
  • repo (query, string): owner/name

Responses

302

Redirect to the GitHub App install screen

default

Error as { error: { code, message } }

  • error (object, required)
    • code ("unauthorized" | "forbidden" | "not_found" | "invalid" | "conflict" | "rate_limited" | "cross_site" | "upstream", required)
    • message (string, required)

Example

curl -X GET \
  https://cupof.ai/auth/github/install