Skip to main content
POST
cURL
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
method
enum<string>
required

The method used to authenticate with GitLab.

Available options:
access-token
credentials
object
required

The credentials used to connect with GitLab.

name
string
required

The name of the GitLab Connection to create. Must be slug-friendly.

Required string length: 1 - 64
description
string | null

An optional description for the GitLab Connection.

Maximum string length: 256
projectId
string

The ID of the project to create the GitLab Connection in.

isPlatformManagedCredentials
enum<boolean>

Not supported for GitLab Connections.

Available options:
false
gatewayId

Not supported for GitLab Connections.

gatewayPoolId

Not supported for GitLab Connections.

isAutoRotationEnabled
enum<boolean>

Not supported for GitLab Connections.

Available options:
false
rotation

Not supported for GitLab Connections.

Response

Default Response

appConnection
GitLab (Access Token) · object
required