GitLab VS Code API

Use this API to synchronize Visual Studio Code settings, so that a user's editor preferences follow them between VS Code and the [Web IDE](https://docs.gitlab.com/user/project/web_ide/).

Operations 10

GET /api/v4/vscode/settings_sync/v1/manifest Retrieve the settings manifest for Settings Sync #
GET /api/v4/vscode/settings_sync/{settings_context_hash}/v1/manifest Retrieve the settings manifest for Settings Sync #
GET /api/v4/vscode/settings_sync/v1/resource/{resource_name}/{id} Retrieve a specific setting resource #
GET /api/v4/vscode/settings_sync/{settings_context_hash}/v1/resource/{resource_name}/{id} Retrieve a specific setting resource #
GET /api/v4/vscode/settings_sync/v1/resource/{resource_name} List all references to a VS Code setting resource #
POST /api/v4/vscode/settings_sync/v1/resource/{resource_name} Create or update a specific setting #
GET /api/v4/vscode/settings_sync/{settings_context_hash}/v1/resource/{resource_name} List all references to a VS Code setting resource #
POST /api/v4/vscode/settings_sync/{settings_context_hash}/v1/resource/{resource_name} Create or update a specific setting #
DELETE /api/v4/vscode/settings_sync/v1/collection Delete all VS Code setting resources for a user #
DELETE /api/v4/vscode/settings_sync/{settings_context_hash}/v1/collection Delete all VS Code setting resources for a user #

Documentation

📖
Documentation
https://docs.gitlab.com/api/openapi/
📖
Documentation
https://docs.gitlab.com/api/issues/
📖
Authentication
https://docs.gitlab.com/api/rest/authentication/
📖
Documentation
https://docs.gitlab.com/api/merge_requests/
📖
Documentation
https://docs.gitlab.com/api/pipelines/
📖
Documentation
https://docs.gitlab.com/api/jobs/
📖
Documentation
https://docs.gitlab.com/api/runners/
📖
Documentation
https://docs.gitlab.com/api/users/
📖
Documentation
https://docs.gitlab.com/api/repositories/
📖
Documentation
https://docs.gitlab.com/api/commits/
📖
Documentation
https://docs.gitlab.com/api/branches/
📖
Documentation
https://docs.gitlab.com/api/tags/
📖
Documentation
https://docs.gitlab.com/api/releases/
📖
Documentation
https://docs.gitlab.com/api/environments/
📖
Documentation
https://docs.gitlab.com/api/deployments/
📖
Documentation
https://docs.gitlab.com/api/pipeline_schedules/
📖
Documentation
https://docs.gitlab.com/api/labels/
📖
Documentation
https://docs.gitlab.com/api/milestones/
📖
Documentation
https://docs.gitlab.com/api/notes/
📖
Documentation
https://docs.gitlab.com/api/snippets/
📖
Documentation
https://docs.gitlab.com/api/packages/
📖
Documentation
https://docs.gitlab.com/api/container_registry/
📖
Documentation
https://docs.gitlab.com/api/vulnerabilities/
📖
Documentation
https://docs.gitlab.com/api/deploy_keys/
📖
Documentation
https://docs.gitlab.com/api/protected_branches/
📖
Documentation
https://docs.gitlab.com/api/wikis/
📖
Documentation
https://docs.gitlab.com/api/events/
📖
Documentation
https://docs.gitlab.com/api/search/
📖
Documentation
https://docs.gitlab.com/api/namespaces/
📖
Documentation
https://docs.gitlab.com/api/groups/
📖
Documentation
https://docs.gitlab.com/api/projects/
📖
Documentation
https://docs.gitlab.com/api/applications/
📖
Documentation
https://docs.gitlab.com/api/avatar/
📖
Documentation
https://docs.gitlab.com/api/broadcast_messages/
📖
Documentation
https://docs.gitlab.com/api/bulk_imports/
📖
Documentation
https://docs.gitlab.com/api/settings/
📖
Documentation
https://docs.gitlab.com/api/metadata/
📖
Documentation
https://docs.gitlab.com/api/version/
📖
Documentation
https://docs.gitlab.com/api/rest/
📖
APIReference
https://docs.gitlab.com/api/api_resources/
📖
RateLimits
https://docs.gitlab.com/security/rate_limits/
📖
Documentation
https://docs.gitlab.com/api/oauth2/
📖
Authentication
https://docs.gitlab.com/integration/oauth_provider/
📖
Documentation
https://docs.gitlab.com/user/project/integrations/webhooks.html
📖
APIReference
https://docs.gitlab.com/api/project_webhooks/

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-put-api-v4-application-settings-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-apientities-geo-node-status-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-apientities-geo-site-status-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-apientities-application-setting-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-post-api-v4-geo-status-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-put-api-v4-projects-id-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-cluster-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-batched-background-migration-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-ci-variable-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-dictionary-table-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-plan-limit-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-appearance-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-avatar-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-bulk-imports-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-bulk-import-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-metadata-schema.json

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/gitlab:gitlab-vscode-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

gitlab-vscode-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab REST VS Code API
  description: GitLab REST API used to interact with a GitLab installation.
  termsOfService: https://handbook.gitlab.com/handbook/legal/api-terms/
  version: '19.6'
  license:
    name: CC BY-SA 4.0
    url: https://gitlab.com/gitlab-org/gitlab/-/blob/master/LICENSE
    x-gitlab-description: The license applies to the OpenAPI specification document itself. For terms governing use of the GitLab API, see the termsOfService field.
servers:
- url: https://{hostname}
  description: GitLab REST API
  variables:
    hostname:
      default: gitlab.com
      description: Your GitLab instance hostname
security:
- http: []
- oauth2: []
- apiKey: []
tags:
- name: VSCode
  description: 'Use this API to synchronize Visual Studio Code settings, so that a user''s editor preferences follow

    them between VS Code and the Web IDE.'
  x-displayName: VS Code
paths:
  /api/v4/vscode/settings_sync/v1/manifest:
    get:
      operationId: getApiV4VscodeSettingsSyncV1Manifest
      summary: Retrieve the settings manifest for Settings Sync
      description: Retrieves the manifest of the settings stored for VS Code Settings Sync.
      tags:
      - VSCode
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIVsCodeSettingsEntitiesVsCodeManifest'
        '401':
          description: 401 Unauthorized
        '404':
          description: Not Found
        '400':
          description: Bad Request
  /api/v4/vscode/settings_sync/{settings_context_hash}/v1/manifest:
    get:
      operationId: getApiV4VscodeSettingsSyncSettingsContextHashV1Manifest
      summary: Retrieve the settings manifest for Settings Sync
      description: Retrieves the manifest of the settings stored for VS Code Settings Sync.
      tags:
      - VSCode
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIVsCodeSettingsEntitiesVsCodeManifest'
        '401':
          description: 401 Unauthorized
        '404':
          description: Not Found
        '400':
          description: Bad Request
      parameters:
      - name: settings_context_hash
        required: true
        description: Settings context hash.
        schema:
          type: string
        in: path
  /api/v4/vscode/settings_sync/v1/resource/{resource_name}/{id}:
    get:
      operationId: getApiV4VscodeSettingsSyncV1ResourceResourceNameId
      summary: Retrieve a specific setting resource
      description: Retrieves a single VS Code setting resource. Returns 204 when the resource does not exist.
      tags:
      - VSCode
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIVsCodeSettingsEntitiesVsCodeSetting'
        '204':
          description: No content
        '400':
          description: 400 bad request
        '401':
          description: 401 Unauthorized
        '404':
          description: Not Found
      parameters:
      - name: resource_name
        required: true
        description: Name of the resource such as settings.
        schema:
          type: string
          enum:
          - settings
          - extensions
          - globalState
          - machines
          - keybindings
          - snippets
          - tasks
          - profiles
          minLength: 1
        in: path
      - name: id
        required: true
        description: ID of the resource to retrieve.
        schema:
          type: string
        in: path
  /api/v4/vscode/settings_sync/{settings_context_hash}/v1/resource/{resource_name}/{id}:
    get:
      operationId: getApiV4VscodeSettingsSyncSettingsContextHashV1ResourceResourceNameId
      summary: Retrieve a specific setting resource
      description: Retrieves a single VS Code setting resource. Returns 204 when the resource does not exist.
      tags:
      - VSCode
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIVsCodeSettingsEntitiesVsCodeSetting'
        '204':
          description: No content
        '400':
          description: 400 bad request
        '401':
          description: 401 Unauthorized
        '404':
          description: Not Found
      parameters:
      - name: settings_context_hash
        required: true
        description: Settings context hash.
        schema:
          type: string
        in: path
      - name: resource_name
        required: true
        description: Name of the resource such as settings.
        schema:
          type: string
          enum:
          - settings
          - extensions
          - globalState
          - machines
          - keybindings
          - snippets
          - tasks
          - profiles
          minLength: 1
        in: path
      - name: id
        required: true
        description: ID of the resource to retrieve.
        schema:
          type: string
        in: path
  /api/v4/vscode/settings_sync/v1/resource/{resource_name}:
    get:
      operationId: getApiV4VscodeSettingsSyncV1ResourceResourceName
      summary: List all references to a VS Code setting resource
      description: Lists all references to the stored versions of a VS Code setting resource.
      tags:
      - VSCode
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIVsCodeSettingsEntitiesVsCodeSettingReference'
        '400':
          description: 400 bad request
        '401':
          description: 401 Unauthorized
        '404':
          description: Not Found
      parameters:
      - name: resource_name
        required: true
        description: Name of the resource such as settings.
        schema:
          type: string
          enum:
          - settings
          - extensions
          - globalState
          - machines
          - keybindings
          - snippets
          - tasks
          - profiles
          minLength: 1
        in: path
    post:
      operationId: postApiV4VscodeSettingsSyncV1ResourceResourceName
      summary: Create or update a specific setting
      description: Creates a VS Code setting resource, or updates it if it already exists.
      tags:
      - VSCode
      responses:
        '200':
          description: OK
        '400':
          description: Bad request
        '401':
          description: 401 Unauthorized
        '404':
          description: Not Found
      parameters:
      - name: resource_name
        required: true
        description: Name of the resource such as settings.
        schema:
          type: string
          enum:
          - settings
          - extensions
          - globalState
          - machines
          - keybindings
          - snippets
          - tasks
          - profiles
          minLength: 1
        in: path
  /api/v4/vscode/settings_sync/{settings_context_hash}/v1/resource/{resource_name}:
    get:
      operationId: getApiV4VscodeSettingsSyncSettingsContextHashV1ResourceResourceName
      summary: List all references to a VS Code setting resource
      description: Lists all references to the stored versions of a VS Code setting resource.
      tags:
      - VSCode
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIVsCodeSettingsEntitiesVsCodeSettingReference'
        '400':
          description: 400 bad request
        '401':
          description: 401 Unauthorized
        '404':
          description: Not Found
      parameters:
      - name: settings_context_hash
        required: true
        description: Settings context hash.
        schema:
          type: string
        in: path
      - name: resource_name
        required: true
        description: Name of the resource such as settings.
        schema:
          type: string
          enum:
          - settings
          - extensions
          - globalState
          - machines
          - keybindings
          - snippets
          - tasks
          - profiles
          minLength: 1
        in: path
    post:
      operationId: postApiV4VscodeSettingsSyncSettingsContextHashV1ResourceResourceName
      summary: Create or update a specific setting
      description: Creates a VS Code setting resource, or updates it if it already exists.
      tags:
      - VSCode
      responses:
        '200':
          description: OK
        '400':
          description: Bad request
        '401':
          description: 401 Unauthorized
        '404':
          description: Not Found
      parameters:
      - name: settings_context_hash
        required: true
        description: Settings context hash.
        schema:
          type: string
        in: path
      - name: resource_name
        required: true
        description: Name of the resource such as settings.
        schema:
          type: string
          enum:
          - settings
          - extensions
          - globalState
          - machines
          - keybindings
          - snippets
          - tasks
          - profiles
          minLength: 1
        in: path
  /api/v4/vscode/settings_sync/v1/collection:
    delete:
      operationId: deleteApiV4VscodeSettingsSyncV1Collection
      summary: Delete all VS Code setting resources for a user
      description: Deletes all VS Code setting resources of the current user.
      tags:
      - VSCode
      responses:
        '200':
          description: OK
        '401':
          description: 401 Unauthorized
        '404':
          description: Not Found
        '400':
          description: Bad Request
  /api/v4/vscode/settings_sync/{settings_context_hash}/v1/collection:
    delete:
      operationId: deleteApiV4VscodeSettingsSyncSettingsContextHashV1Collection
      summary: Delete all VS Code setting resources for a user
      description: Deletes all VS Code setting resources of the current user.
      tags:
      - VSCode
      responses:
        '200':
          description: OK
        '401':
          description: 401 Unauthorized
        '404':
          description: Not Found
        '400':
          description: Bad Request
      parameters:
      - name: settings_context_hash
        required: true
        description: Settings context hash.
        schema:
          type: string
        in: path
components:
  schemas:
    APIVsCodeSettingsEntitiesVsCodeSettingReference:
      type: object
      properties:
        url:
          type: string
        created:
          type: string
    APIVsCodeSettingsEntitiesVsCodeManifest:
      type: object
      properties:
        latest:
          type: string
        session:
          type: string
          example: '1'
    APIVsCodeSettingsEntitiesVsCodeSetting:
      type: object
      properties:
        content:
          type: string
        machines:
          type: string
        version:
          type: string
        machineId:
          type: string
  securitySchemes:
    http:
      type: http
      scheme: bearer
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://gitlab.com/oauth/authorize
          tokenUrl: https://gitlab.com/oauth/token
          refreshUrl: https://gitlab.com/oauth/token
          scopes:
            api: Grants complete read/write access to the API, including all groups and projects, the container registry, the dependency proxy, and the package registry.
            read_api: Grants read access to the API, including all groups and projects, the container registry, and the package registry.
            read_user: Grants read-only access to your profile through the /user API endpoint, which includes username, public email, and full name. Also grants access to read-only API endpoints under /users.
            create_runner: Grants create access to the runners.
            manage_runner: Grants access to manage the runners.
            k8s_proxy: Grants permission to perform Kubernetes API calls using the agent for Kubernetes.
            self_rotate: Grants permission for token to rotate itself.
            mcp: Grants read-write access to remote Model Context Protocol (MCP) server for tools execution.
            mcp_orbit: Grants access to the Orbit Knowledge Graph MCP server for graph queries and schema retrieval.
    apiKey:
      type: apiKey
      name: PRIVATE-TOKEN
      in: header