---
title: "POST /experimental/workspaces/{workspaceId}/integrations/gitlab-token"
method: POST
path: "/experimental/workspaces/{workspaceId}/integrations/gitlab-token"
tags: ["Workspaces", "Integrations"]
---

# POST /experimental/workspaces/{workspaceId}/integrations/gitlab-token

`POST /experimental/workspaces/{workspaceId}/integrations/gitlab-token`

Attaches a GitLab personal/group access token as an integration to a workspace.

## Path parameters

- `workspaceId` string, uuid, required

## Headers

- `Authorization` string

## Request body

- object
  - `accessToken` string, required
  - `instanceUrl` string, uri

## Response `201`

Default Response

- object
  - `links` object, required
    - `self` string, uri, required
  - `data` object, required
    - `id` string, uuid, required
    - `type` 'integration', required
    - `attributes` object, required
      - `type` 'gitlab-token', required
      - `installedBy` string, uuid, required
      - `connectionData` union, required
        - object
          - `scopeType` 'group', required
          - `host` string, required
          - `groupPath` string, required
          - `secretId` string, required
          - `webhookId` number
          - `webhookSecretId` string
        - object
          - `scopeType` 'project', required
          - `host` string, required
          - `projectPath` string, required
          - `secretId` string, required
          - `webhookId` number
          - `webhookSecretId` string
      - `metadata` object, required
      - `createdAt` string, required
      - `updatedAt` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-08-18** `e7688d4122e1` — 1 breaking
  - for the `path` request parameter `workspaceId`, the type/format was changed from `string`/`` to `string`/`uuid`

[Change history](https://skmtc.dev/tessl/apis/tessl-api/changes/experimental/workspaces/:workspaceId/integrations/gitlab-token/post.md)

---

[API](https://skmtc.dev/tessl/apis/tessl-api.md) · [All operations](https://skmtc.dev/tessl/apis/tessl-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tessl/tessl-api/revisions/11217e48a1a9/schema)
