Skip to main content
POST
List GitLab projects

Authorizations

Authorization
string
header
required

API key or session token (Bearer)

Body

application/json
projectId
string
required
Minimum string length: 1
baseUrl
string<uri>
required
accessToken
string
required
Minimum string length: 1
tokenType
enum<string>

private sends the token in PRIVATE-TOKEN, which is what personal, project and group access tokens expect. bearer sends it in Authorization, for an OAuth2 token you already hold. Defaults to private.

Available options:
private,
bearer

Response

Accessible projects

projects
object[]
required