---
title: "getIntegrationRepository"
method: GET
path: "/v1/integrations/github/repositories/{id}"
tags: ["Integrations"]
---

# getIntegrationRepository

`GET /v1/integrations/github/repositories/{id}`

## Request

- Base URL: `https://api.inth.com`
- URL: `https://api.inth.com/v1/integrations/github/repositories/{id}`
- Auth: HTTP bearer

Requires user-delegated integrations.read. API keys are denied. Read repository settings, active scanning and first-organization automation ownership. Direct reads have no sync window.

## Path parameters

- `id` string, required

## Query parameters

- `organizationId` string

## Response `200`

Success

- object
  - `success` true, required
  - `data` IntegrationRepository, required
    - `organizationId` string, required
    - `id` string, required
    - `installationId` string, required
    - `owner` string, required
    - `name` string, required
    - `defaultBranch` string, nullable, required
    - `htmlUrl` string, required
    - `visibility` string, required
    - `connectedAt` string, nullable, required
    - `branchFilters` string[], required
    - `ignoredPaths` string[], required
    - `prScansEnabled` boolean, required
    - `detailPath` string, required
    - `projectLinksPath` string, required
    - `isScanning` boolean, required
    - `pullRequestAutomationManagedHere` boolean, required

## Other responses

- `400`: The request payload or parameters are invalid.
- `401`: Authentication is missing, invalid, or expired.
- `403`: The credential is valid but may not perform the operation. `INSUFFICIENT_SCOPE`: the credential was never granted the capability the operation needs. `details.requiredScope` names it, and the `WWW-Authenticate` header carries `Bearer error="insufficient_scope"`. An OAuth client fixes this by requesting the scope; an organization API key cannot gain it. `FORBIDDEN`: the capability is present but the membership behind the credential lacks the role, or the resource belongs to another organization.
- `404`: The requested resource was not found.
- `409`: The request conflicts with the current resource state.
- `503`: The capability is temporarily paused by an operator. Retry later.

## Changes

- **2026-10-31** `a3f4100e14c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/inth/apis/inth-api/changes/v1/integrations/github/repositories/:id/get.md)

---

[API](https://skmtc.dev/inth/apis/inth-api.md) - [All operations](https://skmtc.dev/inth/apis/inth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/inth/apis/inth-api/revisions/5a1be8d43402?raw)
