GitLab CI/CD glql API

Operations about glqls

Operations 1

POST /api/v4/glql Execute GLQL query #

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-glql-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-glql-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab access_requests Glql API
  version: v4
  description: Operations related to access requests
servers:
- url: https://gitlab.com
tags:
- name: glql
  description: Operations about glqls
paths:
  /api/v4/glql:
    post:
      summary: Execute GLQL query
      description: Execute a GLQL (GitLab Query Language) query
      responses:
        '200':
          description: Execute GLQL query
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_Glql_Result'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '429':
          description: Too Many Requests
        '500':
          description: Internal server error
      tags:
      - glql
      operationId: postApiV4Glql
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postApiV4Glql'
        required: true
components:
  schemas:
    API_Entities_Glql_Data:
      type: object
      properties:
        count:
          type: integer
          format: int32
          example: 42
          description: Number of found items
        nodes:
          type: array
          items:
            type: array
          example: []
          description: The list of found items
        pageInfo:
          allOf:
          - $ref: '#/components/schemas/API_Entities_Glql_PageInfo'
          description: Pagination information
      required:
      - count
      - nodes
      - pageInfo
    API_Entities_Glql_Result:
      type: object
      properties:
        data:
          allOf:
          - $ref: '#/components/schemas/API_Entities_Glql_Data'
          description: Query result data containing count, nodes, and pagination info
        error:
          type: string
          description: Error message if query failed
        fields:
          type: array
          items:
            $ref: '#/components/schemas/API_Entities_Glql_Field'
          description: Field definitions for the query results
        success:
          type: boolean
          example: true
      required:
      - data
      - error
      - fields
      - success
      description: API_Entities_Glql_Result model
    API_Entities_Glql_Field:
      type: object
      properties:
        key:
          type: string
          example: title
          description: Unique field key
        label:
          type: string
          example: Title
          description: Human-readable field label
        name:
          type: string
          example: title
          description: Underlying name of field, often the same as `key`, but it may be different if one type of field has multiple possible keys. Example `created` and `createdAt`
      required:
      - key
      - label
      - name
    API_Entities_Glql_PageInfo:
      type: object
      properties:
        endCursor:
          type: string
          example: eyJpZCI6IjE3In0
          description: Cursor for the last item
        hasNextPage:
          type: boolean
          example: true
          description: Whether there are more items
        hasPreviousPage:
          type: boolean
          example: false
          description: Whether there are previous items
        startCursor:
          type: string
          example: eyJpZCI6IjE3In0
          description: Cursor for the first item
      required:
      - endCursor
      - hasNextPage
      - hasPreviousPage
      - startCursor
    postApiV4Glql:
      type: object
      properties:
        glql_yaml:
          type: string
          description: The full GLQL code block containing YAML configuration and query
        after:
          type: string
          description: Cursor for forward pagination. Use the `endCursor` from previous response to fetch the next page
      required:
      - glql_yaml
      description: Execute GLQL query
  securitySchemes:
    access_token_header:
      type: apiKey
      name: PRIVATE-TOKEN
      in: header
    access_token_query:
      type: apiKey
      name: private_token
      in: query