---
title: "Add a GitHub repo to the workspace (off, not indexed)"
method: POST
path: "/v1/repos"
tags: ["dashboard"]
---

# Add a GitHub repo to the workspace (off, not indexed)

`POST /v1/repos`

## Request

- Base URL: `https://api.tently.dev`
- URL: `https://api.tently.dev/v1/repos`
- Auth: none declared

## Request body

- object
  - `githubRepoId` integer, required
  - `fullName` string, required
  - `defaultBranch` string, required
  - `installationId` integer, required
  - `prMiningLimit` integer
  - `acceptExtraRepo` boolean

## Response `201`

Default Response

- object
  - `id` string, uuid, required
  - `githubRepoId` integer, required
  - `fullName` string, required
  - `defaultBranch` string, required
  - `installationId` integer, nullable, required
  - `prMiningLimit` integer, required

## Other responses

- `401`: Default Response
- `403`: Default Response
- `409`: Default Response
- `502`: Default Response
- `503`: Default Response

---

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