---
title: "Get a project's repo connection"
method: GET
path: "/projects/{id}/git-connection"
tags: ["Projects", "Git Connections"]
---

# Get a project's repo connection

`GET /projects/{id}/git-connection`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/git-connection`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `id` string, uuid, required

## Response `200`

The project's current repo connection

- ProjectGitConnection
  - `repo_installation_id` integer, required
  - `repo_id` integer, required: Stable GitHub repository id (repository.id), the authoritative binding.
  - `repo_full_name` string, required
  - `root_directory` string, required
  - `production_branch` string, required: The branch a push must land on to deploy. Follows the repository's GitHub default branch unless the project set its own, which a default-branch rename on GitHub then leaves alone.
  - `updated_at` string, date-time, required: When the connection last changed: its repository, root directory or production branch. Naming the branch it already uses, and other changes to the project, leave it alone. A connection that has not changed since Volcano began tracking this reports the project's last change before then.

## Other responses

- `401`: Unauthorized - invalid or missing token
- `403`: Project not owned by the caller
- `404`: Project not found, or has no repo connection
- `500`: Failed to get project git connection

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 5 breaking, 8 info
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `403`
  - the response's body type changed from no type to `object` for status `404`
  - …9 more
- **2026-08-27** `bb44e98aba2e`: 8 breaking, 5 warning
  - the response's body type changed from `object` to no type for status `401`
  - the response's body type changed from `object` to no type for status `403`
  - the response's body type changed from `object` to no type for status `404`
  - the response's body type changed from `object` to no type for status `500`
  - …9 more
- **2026-07-27** `bb52784e098a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/git-connection/get.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
