---
title: "List connected repositories"
method: GET
path: "/v1/code-audit/repositories"
tags: ["Code Audit"]
---

# List connected repositories

`GET /v1/code-audit/repositories`

## Request

- Base URL: `https://api.inth.com`
- URL: `https://api.inth.com/v1/code-audit/repositories`
- Auth: HTTP bearer

GitHub repositories the Inth App can reach, with the projects each is linked to. Requires code-audit.read.

## Query parameters

- `organizationId` string
- `limit` integer, required
- `cursor` string

## Response `200`

Connected repositories.

- object
  - `success` true, required
  - `data` CodeAuditRepository[], required
    - `id` string, required
    - `organizationId` string, required
    - `owner` string, required
    - `name` string, required
    - `htmlUrl` string, uri, required
    - `defaultBranch` string, nullable, required
    - `visibility` string, required
    - `connectedAt` string, date-time, nullable, required
    - `projects` object[], required
      - `projectId` string, required
      - `projectSlug` string, required
      - `projectName` string, required
      - `productionBranch` string, nullable, required
      - `rootDirectory` string, nullable, required
      - `pullRequestScansEnabled` boolean, required
  - `pagination` Pagination, required
    - `nextCursor` string, nullable, required: Cursor for the next page; null on the last page.
    - `hasMore` 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.
- `429`: The rate limit was exceeded. API key limits are set by plan tier (Starter 600/min, Pro 1500/min, Enterprise 3000/min). Check the Retry-After header before retrying.
- `500`: An unexpected internal error occurred.

## Changes

- **2026-09-08** `66c8f6ac2730`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/inth/apis/inth-api/changes/v1/code-audit/repositories/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)
