Skip to main content
TroopyDocs
Open Troopy
Troopy

API reference / Apps

List the GitHub repos

The repos Troopy's GitHub App reaches in this workspace (the ones picked when it was installed), each with the commands the Engineer uses: setup installs what the code needs, test says whether a change works. Troopy guesses both the first time; an empty test means changes to that repo can't be checked, so no pull request opens.

get/api/v1/apps/github/repos

Authorization

HeaderAuthorization: Bearer <API key>
Or the headerX-API-Key: <API key>
API keyMake one in Troopy under Settings > API keys. It acts as you, in its workspace.
Scopesapps:read

Other ways to call it

CLItroopy github repos
MCP tooltroopy_list_repos
Rate limit30 calls in 60 seconds, for each key

Response

200 · application/json
data*array<object>
5 properties
fullName*string

owner/name

defaultBranch*string
private*boolean
setup*string

Installs what the code needs, like npm ci; empty for nothing to install

test*string

Says whether a change works, like npm test; empty: changes can't be checked

Errors

401 unauthorizedSend an API key as `Authorization: Bearer tr_live_...`. Create one in Troopy under Settings.
403 forbiddenThe key lacks a scope this operation needs, or its owner lacks the role. detail says which; create a key with the scope, or ask an organization owner or admin.
429 rate_limitedWait the number of seconds in Retry-After, then retry.