List the repositories a team can reach
GET/api/teams/{team_id}/repos
listTeamRepos
The team half of ADR 0077 §5: every repository this team holds a grant on, with the role that grant carries. Visible to any workspace member; non-members get 404. Rows the CALLER cannot read are omitted, so the list is never an oracle for repositories they may not see.
Requires authentication using a bearer token or a session cookie — see tokens and scopes.
curl
curl -X GET 'https://neosource.dev/api/teams/TEAM_ID/repos' \
-H 'Authorization: Bearer $NEOSOURCE_TOKEN'fetch
fetch("https://neosource.dev/api/teams/TEAM_ID/repos", {
method: "GET",
headers: {
Authorization: "Bearer $NEOSOURCE_TOKEN",
},
});Path parameters
team_idrequired
Responses
200Repositories the team reaches
application/json
403Forbidden — one of: forbidden, needs_scope
application/json
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 401Authentication required
- 404Not Found — one of: not_found
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget
Schemas
Referenced above. Listed here rather than expanded inline, so the same definition is not repeated at every level.
RepoRole
Repo-level role (read/write/maintain/admin). Ordered low → high so `if role >= RepoRole::Write` reads naturally.
"read""write""maintain""admin"
RepoVisibilityInput
"public""internal""private"