Skip to content
sign in

Forge connections (user key or session auth)

GET /api/v1/forge

GitHub and GitLab accounts connected to this cupof account. Never carries tokens. available says which forges this server can connect, and the GitHub App install URL when there is one.

Request

No parameters and no body.

Responses

200

Connections

  • connections (object[], required)
  • available (object, required)
    • github (boolean, required)
    • gitlab (boolean, required)
    • github_install_url (string | null, 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