Skip to content
sign in

Repos this account may link

GET /api/v1/forge/{forge}/available

GitHub: every repo the cup of ai App is installed on for this user. GitLab: projects where the user has Developer access or higher; until the connection holds the api scope, consent_required is true and consent_url starts the grant. 409 conflict when the stored token can no longer be refreshed (reconnect). 502 upstream when the forge fails.

Request

Parameters

  • forge (path, "github" | "gitlab", required)

Responses

200

Available repos

  • consent_required (boolean, required)
  • consent_url (string | null, required)
  • repos (object[], required)

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 \
  -H "Authorization: Bearer cupof_uk_YOUR_KEY" \
  https://cupof.ai/api/v1/forge/FORGE/available