GitLab CI/CD features API

Operations related to managing Flipper-based feature flags

Operations 4

GET /api/v4/features List all features #
GET /api/v4/features/definitions List all feature definitions #
POST /api/v4/features/{name} Set or create a feature #
DELETE /api/v4/features/{name} Delete a feature #

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-ci-features-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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-ci-features-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab access_requests Features API
  version: v4
  description: Operations related to access requests
servers:
- url: https://gitlab.com
tags:
- name: features
  description: Operations related to managing Flipper-based feature flags
paths:
  /api/v4/features:
    get:
      summary: List all features
      description: Get a list of all persisted features, with its gate values.
      responses:
        '200':
          description: List all features
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/API_Entities_Feature'
      tags:
      - features
      operationId: getApiV4Features
  /api/v4/features/definitions:
    get:
      summary: List all feature definitions
      description: Get a list of all feature definitions.
      responses:
        '200':
          description: List all feature definitions
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/API_Entities_Feature_Definition'
      tags:
      - features
      operationId: getApiV4FeaturesDefinitions
  /api/v4/features/{name}:
    post:
      summary: Set or create a feature
      description: Set a feature's gate value. If a feature with the given name doesn't exist yet, it's created. The value can be a boolean, or an integer to indicate percentage of time.
      parameters:
      - in: path
        name: name
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '201':
          description: Set or create a feature
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_Feature'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      tags:
      - features
      operationId: postApiV4FeaturesName
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postApiV4FeaturesName'
        required: true
    delete:
      summary: Delete a feature
      description: Removes a feature gate. Response is equal when the gate exists, or doesn't.
      parameters:
      - in: path
        name: name
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '204':
          description: Delete a feature
      tags:
      - features
      operationId: deleteApiV4FeaturesName
components:
  schemas:
    API_Entities_Feature_Definition:
      type: object
      properties:
        name:
          type: string
        feature_issue_url:
          type: string
        introduced_by_url:
          type: string
        rollout_issue_url:
          type: string
        milestone:
          type: string
        log_state_changes:
          type: string
        type:
          type: string
        group:
          type: string
        default_enabled:
          type: string
        intended_to_rollout_by:
          type: string
      required:
      - name
      - feature_issue_url
      - introduced_by_url
      - rollout_issue_url
      - milestone
      - log_state_changes
      - type
      - group
      - default_enabled
      - intended_to_rollout_by
      description: API_Entities_Feature_Definition model
    postApiV4FeaturesName:
      type: object
      properties:
        value:
          type: string
          description: '`true` or `false` to enable/disable, or an integer for percentage of time'
        key:
          type: string
          description: '`percentage_of_actors` or `percentage_of_time` (default)'
        feature_group:
          type: string
          description: A Feature group name
        user:
          type: string
          description: A GitLab username or comma-separated multiple usernames
        group:
          type: string
          description: A GitLab group's path, for example `gitlab-org`, or comma-separated multiple group paths
        namespace:
          type: string
          description: A GitLab group or user namespace's path, for example `john-doe`, or comma-separated multiple namespace paths. Introduced in GitLab 15.0.
        project:
          type: string
          description: A projects path, for example `gitlab-org/gitlab-foss`, or comma-separated multiple project paths
        repository:
          type: string
          description: A repository path, for example `gitlab-org/gitlab-test.git`, `gitlab-org/gitlab-test.wiki.git`, `snippets/21.git`, to name a few. Use comma to separate multiple repository paths
        runner:
          type: string
          description: A runner ID, or comma-separated list of runner IDs
        endpoint:
          type: string
          description: A caller_id identifying a code path, for example `GET /api/v4/projects/:id` or `ProjectsController#show`. Use comma to separate multiple endpoint paths
        force:
          type: boolean
          description: Skip feature flag validation checks, such as a YAML definition
      required:
      - value
      description: Set or create a feature
    API_Entities_Feature:
      type: object
      properties:
        name:
          type: string
          example: experimental_feature
        state:
          type: string
          example: 'off'
        gates:
          $ref: '#/components/schemas/API_Entities_FeatureGate'
        definition:
          $ref: '#/components/schemas/API_Entities_Feature_Definition'
      required:
      - name
      - state
      - gates
      - definition
      description: API_Entities_Feature model
    API_Entities_FeatureGate:
      type: object
      properties:
        key:
          type: string
          example: percentage_of_actors
        value:
          type: integer
          format: int32
          example: 34
      required:
      - key
      - value
  securitySchemes:
    access_token_header:
      type: apiKey
      name: PRIVATE-TOKEN
      in: header
    access_token_query:
      type: apiKey
      name: private_token
      in: query