> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# GitLab (Group Access Token)

> Integrate your application with the GitLab API using a Group Access Token

## 🚀 Quickstart

Connect to GitLab with a Group Access Token in Nango and see data flow in 2 minutes.

**1. Create the integration**

In Nango ([free signup](https://app.nango.dev)), open **Integrations** -> *Configure New Integration* -> *GitLab (Group Access Token)*.

**2. Connect your GitLab group**

Open **Connections** -> *Add Test Connection* -> *Authorize*, then enter your GitLab hostname, group ID, and Group Access Token. Later, you'll let your users do the same directly from your app.

**3. Call the GitLab API**

Make your first request by fetching the authenticated bot user. Replace the placeholders with your [Environment API key](https://nango.dev/docs/reference/backend/http-api/api-keys.md), integration ID from **Integrations**, and connection ID from **Connections**:

**cURL**

```bash theme={null}
curl "https://api.nango.dev/proxy/api/v4/user" \
  -H "Authorization: Bearer <NANGO-API-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"
```

**Node**

Install Nango's backend SDK with `npm i @nangohq/node`. Then run:

```typescript theme={null}
import { Nango } from '@nangohq/node';

const nango = new Nango({ apiKey: '<NANGO-API-KEY>' });

const res = await nango.get({
    endpoint: '/api/v4/user',
    providerConfigKey: '<INTEGRATION-ID>',
    connectionId: '<CONNECTION-ID>'
});

console.log(res.data);
```

Or fetch credentials with the [Node SDK](https://nango.dev/docs/reference/backend/backend-sdk/node.md#get-a-connection-with-credentials) or [API](https://nango.dev/docs/reference/backend/http-api/connections/get.md).

✅ You're connected! Open **Logs** in Nango to inspect requests.

**4. Implement Nango in your app**

Follow our [Auth implementation guide](https://nango.dev/docs/guides/auth/auth-guide.md) to integrate Nango in your app.

To create a Group Access Token, follow the connect guide linked below.

## 📚 GitLab (Group Access Token) integration guides

Nango maintained guides for common use cases.

* [How do I link my GitLab group?](https://nango.dev/docs/api-integrations/gitlab-group-token/connect)\
  Create a Group Access Token in GitLab and connect it to Nango

Official docs: [GitLab Group Access Tokens](https://docs.gitlab.com/user/group/settings/group_access_tokens/)

## GitLab Group Access Token notes

* Group Access Tokens authenticate as an auto-provisioned bot user inside the group. The token remains associated with the group when individual members leave.
* The token grants access to the group and its subgroups and projects, not the wider GitLab instance. Create one connection per group when you need access to multiple unrelated groups.
* GitLab webhook payloads do not contain a Nango connection ID. Append `?nangoConnectionId=<connectionId>` to the Nango webhook URL when registering a project or group webhook. Configure a [signing token](https://docs.gitlab.com/user/project/integrations/webhooks/#signing-tokens) on the GitLab webhook and store the same value as `webhookSecret` in the Nango connection metadata.

## 🧩 Pre-built syncs & actions for GitLab (Group Access Token)

Explore Nango-provided actions in your dashboard. [Extend and customize them](https://nango.dev/docs/guides/functions/functions-guide.md) to fit your needs.

*No pre-built syncs or actions available yet.*

> [!TIP]
>
> Not seeing the integration you need? [Build your own](https://nango.dev/docs/guides/functions/functions-guide.md) independently.

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.