Get repo
Fetch a repo by owner path and repo slug.
Endpoints
GET /api/v1/teams/{team_slug}/repos/{repo_slug}
GET /api/v1/users/{username}/repos/{repo_slug}
Authenticated
Usage
curl --header "Authorization: Bearer $GHIT_API_TOKEN" "$GHIT_API_URL/v1/teams/platform/repos/website"
curl --header "Authorization: Bearer $GHIT_API_TOKEN" "$GHIT_API_URL/v1/users/alice/repos/website"
Success
200 OK with the repo record.
{
"uuid": "...",
"name": "Website",
"slug": "website",
"visibility": "private",
"default_branch": "main",
"is_active": true,
"created_at": "2026-03-09T12:00:00Z"
}
Errors
403 Forbiddenwhen repo access is denied.404 Not Foundwhen owner/repo is not found.
Common auth errors are documented on the API overview page.