> ## Documentation Index
> Fetch the complete documentation index at: https://docs.korve.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Check Repo Access

> Check whether the platform can reach a repository for deploys and previews. Answers that are not accessible include the URL where access can be granted.



## OpenAPI

````yaml /openapi.json get /v1/orgs/{orgId}/projects/{projectId}/repo-access
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/projects/{projectId}/repo-access:
    get:
      tags:
        - projects
      summary: Check Repo Access
      description: >-
        Check whether the platform can reach a repository for deploys and
        previews. Answers that are not accessible include the URL where access
        can be granted.
      operationId: projects.checkRepoAccess
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: The project's id (UUID) or slug — either form is accepted.
        - name: repo
          in: query
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$
          description: Repository to check, as "owner/repo".
      responses:
        '200':
          description: The access check result.
          content:
            application/json:
              schema:
                type: object
                properties:
                  accessible:
                    type: boolean
                  reason:
                    type: string
                    enum:
                      - not_installed
                      - invalid
                    description: >-
                      Present when not accessible: the Korve GitHub App is not
                      installed on that repository, or repo is not a valid
                      "owner/repo" value.
                  installUrl:
                    type: string
                    description: Where to grant the platform access to repositories.
                required:
                  - accessible
                  - installUrl
        '404':
          description: No such project in this organization.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````