List mirrors
GET/api/repos/{owner}/{repo}/mirrors
listMirrors
Lists all mirrors on a repository, and `upstream_names`: every GitHub `owner/name` the same-target guard compares a mirror target against. Requires admin access.
Requires authentication using a bearer token or a session cookie — see tokens and scopes.
curl
curl -X GET 'https://neosource.dev/api/repos/OWNER/REPO/mirrors' \
-H 'Authorization: Bearer $NEOSOURCE_TOKEN'fetch
fetch("https://neosource.dev/api/repos/OWNER/REPO/mirrors", {
method: "GET",
headers: {
Authorization: "Bearer $NEOSOURCE_TOKEN",
},
});Path parameters
ownerrequiredRepository owner or organization slug.
reporequiredRepository name.
Responses
200Mirror list
application/json
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 401Authentication required
- 403Forbidden — one of: forbidden
- 404Not Found — one of: not_found
- 423Locked — one of: busy
- 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.
MirrorCredentialKind
The closed set of mirror credential kinds, as the API reports them. The installation and repository ids stay server-side.
"deploy_key""github_app"
MirrorTargetKind
What kind of upstream a mirror is targeting. Persisted as the `mirror_target_kind` Postgres enum.
"github""gitlab""generic"