Learn how to build AI agents with GitLab access using xpander.ai. This integration enables intelligent code-aware AI assistants that can read, manage, and analyze repositories, issues, merge requests, and CI/CD pipelines to streamline development workflows automatically.

Authentication Options

GitLab API access configuration

For programmatic access and automation:

  1. Log in to GitLab.com
  2. On the left sidebar, select your avatar, then select Edit profile.
  3. On the left sidebar, select Access tokens, then select Add new token.
  4. Add Token name, desired scopes, and an expiration date:

  1. Click Create personal access token, and copy your token:

Note: After you close this window the token value cannot be retrieved. Save it right away—preferably in a password manager.

Let’s create the Xpander.ai GitLab interface!

  1. Write your interface name.
  2. Select the interface access you’d like.
  3. Select the API key authentication method.
  4. Select the Integration user authentication scope.

You have three options here: Custom, In-URL or Bearer:

1. Custom:

  1. Select Custom as the Auth type and PRIVATE-TOKEN as the Custom header name.
  2. Paste the token copied earlier in the API Key field using this template: [YOUR_API_KEY], like so:

2. In-URL:

  1. Select In-URL as the Auth type and private_token as the Custom header name.
  2. Paste the token copied earlier in the API Key field using this template: [YOUR_API_KEY], like so:

3. Bearer:

  1. Select Bearer as the Auth type.
  2. Paste the token copied earlier in the API Key field using this template: [YOUR_API_KEY], like so:

Note: Make sure to replace [YOUR_API_KEY] with your actual GitLab API key.

Then save the interface.

For general information about GitLab, click here - GitLab Documentation,

for information about the GitLab REST API Authentication methods, click here,

and to get more details about how to create your GitLab Personal Access Tokens, click here.