Skip to content
For LLMsView as Markdown·

GitLab ​

Manage projects, merge requests, and CI/CD pipelines via the GitLab API.

DetailValue
CategoryDev Tools
Base URLhttps://gitlab.com/api
AuthenticationBearer Token
Endpoints6
Connector keygitlab

Using GitLab in a workflow ​

  1. Go to Connections and click New Connection.
  2. Pick GitLab from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown. The full list is below.

Available endpoints ​

EndpointSummary
GET /projectsList projects
GET /projects/{id}Get a project
GET /projects/{id}/merge_requestsList merge requests
POST /projects/{id}/merge_requestsCreate a merge request
GET /projects/{id}/issuesList project issues
GET /projects/{id}/pipelinesList CI/CD pipelines

Each endpoint is documented in full below. Use the outline on the right to jump to one.

GET /projects ​

List projects

DetailValue
Operation IDdevtools.listProjects
MethodGET
Path/projects

Parameters ​

NameLocationTypeRequired
membershipquerybooleanNo
per_pagequeryintegerNo

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your GitLab connection from the Connection dropdown.
  3. In the Operation dropdown, select devtools.listProjects.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream GitLab API reference.

GET /projects/{id} ​

Get a project

DetailValue
Operation IDdevtools.getProject
MethodGET
Path/projects/{id}

Parameters ​

NameLocationTypeRequired
idpathstringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your GitLab connection from the Connection dropdown.
  3. In the Operation dropdown, select devtools.getProject.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream GitLab API reference.

GET /projects/{id}/merge_requests ​

List merge requests

DetailValue
Operation IDdevtools.listMergeRequests
MethodGET
Path/projects/{id}/merge_requests

Parameters ​

NameLocationTypeRequired
idpathstringYes
statequerystringNo

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your GitLab connection from the Connection dropdown.
  3. In the Operation dropdown, select devtools.listMergeRequests.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream GitLab API reference.

POST /projects/{id}/merge_requests ​

Create a merge request

DetailValue
Operation IDdevtools.createMergeRequest
MethodPOST
Path/projects/{id}/merge_requests

Parameters ​

NameLocationTypeRequired
idpathstringYes

Request Body ​

FieldType
source_branchstring
target_branchstring
titlestring

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your GitLab connection from the Connection dropdown.
  3. In the Operation dropdown, select devtools.createMergeRequest.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream GitLab API reference.

GET /projects/{id}/issues ​

List project issues

DetailValue
Operation IDdevtools.listIssues
MethodGET
Path/projects/{id}/issues

Parameters ​

NameLocationTypeRequired
idpathstringYes
statequerystringNo

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your GitLab connection from the Connection dropdown.
  3. In the Operation dropdown, select devtools.listIssues.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream GitLab API reference.

GET /projects/{id}/pipelines ​

List CI/CD pipelines

DetailValue
Operation IDdevtools.listPipelines
MethodGET
Path/projects/{id}/pipelines

Parameters ​

NameLocationTypeRequired
idpathstringYes
statusquerystringNo

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your GitLab connection from the Connection dropdown.
  3. In the Operation dropdown, select devtools.listPipelines.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream GitLab API reference.