---
title: "Add Repo"
method: POST
path: "/v1/repos"
---

# Add Repo

`POST /v1/repos`

## Request

- Base URL: `https://api.tabtabtab.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tabtabtab.ai/v1/repos`
- Auth: none declared

## Request body

- RepoAddRequest: Single payload for `POST /v1/repos`.
  - `localPath` string, required
  - `name` string, required
  - `targetEnvId` string, nullable
  - `gitRemoteUrl` string, nullable
  - `activeBranch` string, nullable
  - `defaultBranch` string, nullable
  - `envVars` EnvVarInput[]
    - `key` string, required
    - `sourcePath` string, required
    - `value` string, required
    - `isSecret` boolean, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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