cURL
GitLab
Create
Create a GitLab Connection.
POST
cURL
Documentation Index
Fetch the complete documentation index at: https://infisical-docs-self-host-infra.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Gitlab OAuth Connections must be created through the Infisical UI.
Check out the configuration docs for Gitlab OAuth Connections for a step-by-step
guide.
Body
application/json
- Option 1
- Option 2
The method used to authenticate with GitLab.
Available options:
access-token The credentials used to connect with GitLab.
The name of the GitLab Connection to create. Must be slug-friendly.
Required string length:
1 - 64An optional description for the GitLab Connection.
Maximum string length:
256The ID of the project to create the GitLab Connection in.
Not supported for GitLab Connections.
Available options:
false Not supported for GitLab Connections.
Not supported for GitLab Connections.
Available options:
false Not supported for GitLab Connections.
Response
Default Response
- GitLab (Access Token)
- GitLab (OAuth)