---
title: "Add Gitlab"
method: POST
path: "/api/v1/installations/add-gitlab"
tags: ["Installations"]
---

# Add Gitlab

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

## Request

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

Creates a new Gitlab installation connection for repository access

## Request body

- object: Input for creating a new Gitlab installation connection
  - `token` string, required: Gitlab access token with API permissions
  - `url` string, uri, required: Base URL of the Gitlab instance (e.g., https://gitlab.com or your self-hosted instance URL)

## Response `200`

Installation created successfully

- object
  - `id` string: ID of the created Gitlab installation

---

[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)
