Skip to content
sign in

Linked repos (user key or session auth)

GET /api/v1/repos

Request

No parameters and no body.

Responses

200

Repos

  • repos (object[], required)
    • id (string, required)
    • forge ("github" | "gitlab", required)
    • host (string, required)
    • full_path (string, required)
    • is_private (boolean, required)
    • created_at (integer, required): Epoch ms
    • auto_rooms (boolean, required): A review room opens automatically when a pull/merge request opens on this repo
    • auto_rooms_available (boolean, required): Whether auto_rooms can be turned on for this link now
    • auto_rooms_reason (string | null, required): Why auto_rooms is unavailable (null when it is available)
    • barista (boolean, required): Barista: each new pull request on this repo gets the default crew seated and round 1 opened, with no click. Needs a saved crew and auto_rooms
    • crew_size (integer, required): Agents in the saved default crew that still exist (0: no crew)

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/repos