---
title: "List GitLab projects"
method: POST
path: "/gitlab-integration/projects"
tags: ["GitLab"]
---

# List GitLab projects

`POST /gitlab-integration/projects`

## Request

- Base URL: `https://cloud.kaneo.app/api`
- URL: `https://cloud.kaneo.app/api/gitlab-integration/projects`
- Auth: HTTP bearer

List the projects a GitLab token is a member of, for picking one to link. Sent as a POST because the token travels in the body rather than the URL.

## Request body

- object
  - `projectId` string, required
  - `baseUrl` string, uri, required
  - `accessToken` string, required
  - `tokenType` 'private' | 'bearer': `private` sends the token in PRIVATE-TOKEN, which is what personal, project and group access tokens expect. `bearer` sends it in Authorization, for an OAuth2 token you already hold. Defaults to `private`.

## Response `200`

Accessible projects

- GitlabProjectList
  - `projects` GitlabProject[], required
    - `id` number, required
    - `name` string, required
    - `path_with_namespace` string, required
    - `name_with_namespace` string, required
    - `visibility` string, required
    - `web_url` string, required

## Other responses

- `400`: Invalid body
- `401`: GitLab rejected the token, or the instance is unreachable
- `403`: No access to the project, or missing workspace:manage_settings
- `404`: Project not found
- `429`: The API key exceeded its rate limit or usage quota. Wait the number of seconds in Retry-After before retrying. The X-RateLimit headers are sent only when the rate limit was hit.

## Changes

- **2026-10-09** `c9984766c765`: 1 info
  - added the non-success response with the status `404`
- **2026-10-08** `c7b8a842601b`: 4 breaking, 4 info
  - removed the media type `text/plain` for the response with the status `400`
  - removed the media type `text/plain` for the response with the status `401`
  - removed the media type `text/plain` for the response with the status `403`
  - removed the media type `text/plain` for the response with the status `429`
  - …4 more
- **2026-10-08** `2ed51b8af657`: 3 breaking, 4 info
  - removed the media type `application/json` for the response with the status `400`
  - removed the media type `application/json` for the response with the status `401`
  - removed the media type `application/json` for the response with the status `403`
  - added the media type `text/plain` for the response with the status `400`
  - …3 more
- **2026-10-07** `df1439c724ee`: 3 breaking, 3 info
  - removed the media type `text/plain` for the response with the status `400`
  - removed the media type `text/plain` for the response with the status `401`
  - removed the media type `text/plain` for the response with the status `403`
  - added the media type `application/json` for the response with the status `400`
  - …2 more
- **2026-09-26** `cfcd17ccaa21`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/usekaneo/apis/kaneo-api/changes/gitlab-integration/projects/post.md)

---

[API](https://skmtc.dev/usekaneo/apis/kaneo-api.md) - [All operations](https://skmtc.dev/usekaneo/apis/kaneo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usekaneo/apis/kaneo-api/revisions/93f78789100c?raw)
