---
title: "Add GitLab"
method: POST
path: "/api/v1/repositories/add-gitlab"
tags: ["Repositories"]
---

# Add GitLab

`POST /api/v1/repositories/add-gitlab`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v1/repositories/add-gitlab`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Add one or more GitLab repositories to the organization

## Request body

- object
  - `organizationId` string: Organization to add the repositories to
  - `repositories` object[]: List of GitLab repositories to add
    - `installationId` string, required: GitLab installation identifier
    - `repositoryUrl` string, required: URL of the GitLab repository
    - `defaultBranch` string, required: Default branch for repository operations
    - `webhookSigningSecret` string, required: Secret used to verify GitLab webhook payloads
    - `externalGitlabProjectId` string, required: GitLab's internal project identifier

## Response `200`

Successfully added repositories

- object[]: List of created repository identifiers
  - `id` string, required: Unique identifier of the created repository

---

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