GitLab · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for GitLab REST Code Suggestions API

5 actions 5 updates phrasing extends openapi/gitlab-code-suggestions-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for GitLab's API. It is a proposal applied on top of the contract, not a document GitLab publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 5

$.info
$.paths['/api/v4/code_suggestions/completions'].post
$.paths['/api/v4/code_suggestions/direct_access'].post
$.paths['/api/v4/code_suggestions/enabled'].post
$.paths['/api/v4/code_suggestions/connection_details'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for GitLab REST Code Suggestions API
  version: 1.0.0
extends: openapi/gitlab-code-suggestions-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-23'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 4
- target: $.paths['/api/v4/code_suggestions/completions'].post
  update:
    x-apievangelist-phrasing:
      intent: Generate AI code completions
      effect: write
      questions:
      - How do I get AI-generated code suggestions for a file?
      - Can I pass a user instruction and context to shape a code suggestion?
      instructions:
      - text: Generate a code suggestion for file {current_file}.
        slots:
          current_file: requestBody.current_file
      - text: Suggest code for {current_file} with instruction {user_instruction} and context {context}.
        slots:
          current_file: requestBody.current_file
          user_instruction: requestBody.user_instruction
          context: requestBody.context
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/code_suggestions/direct_access'].post
  update:
    x-apievangelist-phrasing:
      intent: Get direct access details for the AI Gateway
      effect: read
      questions:
      - Where do IDEs connect to send code suggestion requests directly?
      - What connection details does an IDE need to talk to the AI Gateway?
      instructions:
      - text: Get direct access details for the AI Gateway.
      - text: Fetch the connection details IDEs use to send completion requests to the AI Gateway.
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/code_suggestions/enabled'].post
  update:
    x-apievangelist-phrasing:
      intent: Check if Code Suggestions are enabled
      effect: read
      questions:
      - Is Code Suggestions enabled for this project?
      - Does an ancestor group have the Code Suggestions add-on turned on?
      instructions:
      - text: Check whether Code Suggestions is enabled for {project_path}.
        slots:
          project_path: requestBody.project_path
      - text: Validate Code Suggestions status on project {project_path}.
        slots:
          project_path: requestBody.project_path
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/code_suggestions/connection_details'].post
  update:
    x-apievangelist-phrasing:
      intent: Get connection details for telemetry
      effect: read
      questions:
      - What application ID and access token does my IDE need for telemetry?
      - Where is the ClickHouse data plane URL for Code Suggestions telemetry?
      instructions:
      - text: Get the connection details for Code Suggestions telemetry.
      - text: Fetch the instance-specific application ID and ClickHouse data plane URL.
      method: generated
      generated: '2026-11-23'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • 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 overlay
curl "https://apis.io/api/v1/overlays/gitlab-code-suggestions-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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