GitLab · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for GitLab REST Branches API

9 actions 9 updates phrasing extends openapi/gitlab-branches-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 9

$.info
$.paths['/api/v4/projects/{id}/repository/branches'].get
$.paths['/api/v4/projects/{id}/repository/branches'].post
$.paths['/api/v4/projects/{id}/repository/branches/{branch}'].get
$.paths['/api/v4/projects/{id}/repository/branches/{branch}'].delete
$.paths['/api/v4/projects/{id}/repository/branches/{branch}'].head
$.paths['/api/v4/projects/{id}/repository/branches/{branch}/protect'].put
$.paths['/api/v4/projects/{id}/repository/branches/{branch}/unprotect'].put
$.paths['/api/v4/projects/{id}/repository/merged_branches'].delete

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 Branches API
  version: 1.0.0
extends: openapi/gitlab-branches-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: 8
- target: $.paths['/api/v4/projects/{id}/repository/branches'].get
  update:
    x-apievangelist-phrasing:
      intent: List a project's branches
      effect: read
      questions:
      - Which branches exist in my GitLab project?
      - Can I search branches by name or pattern?
      instructions:
      - text: List all branches in project {id}.
        slots:
          id: path.id
      - text: Find branches in {id} matching {search}.
        slots:
          id: path.id
          search: query.search
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/branches'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a branch
      effect: write
      questions:
      - How do I create a new branch in a project?
      - Can I branch off a specific commit instead of the default branch?
      instructions:
      - text: Create branch {branch} in project {id} from {ref}.
        slots:
          branch: requestBody.branch
          id: path.id
          ref: requestBody.ref
      - text: Add a new branch {branch} to {id} starting at commit {ref}.
        slots:
          branch: requestBody.branch
          id: path.id
          ref: requestBody.ref
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/branches/{branch}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a branch's details
      effect: read
      questions:
      - What are the details of a specific branch?
      - Can I see a branch's protection status and merge status?
      instructions:
      - text: Show branch {branch} in project {id}.
        slots:
          branch: path.branch
          id: path.id
      - text: Get the protection and merge status of {branch} in {id}.
        slots:
          branch: path.branch
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/branches/{branch}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a branch
      effect: destructive
      questions:
      - How do I delete a branch I no longer need?
      - Can I remove a branch from a project?
      instructions:
      - text: Delete branch {branch} from project {id}.
        slots:
          branch: path.branch
          id: path.id
      - text: Remove the {branch} branch in {id}.
        slots:
          branch: path.branch
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/branches/{branch}'].head
  update:
    x-apievangelist-phrasing:
      intent: Check if a branch exists
      effect: read
      questions:
      - Does a branch exist in my project without fetching it?
      - Can I check branch existence with a HEAD request?
      instructions:
      - text: Check whether branch {branch} exists in project {id}.
        slots:
          branch: path.branch
          id: path.id
      - text: Confirm {branch} is a branch of {id} without returning its details.
        slots:
          branch: path.branch
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/branches/{branch}/protect'].put
  update:
    x-apievangelist-phrasing:
      intent: Protect a branch
      effect: write
      questions:
      - How do I protect a branch so only maintainers can push to it?
      - Can I allow developers to push or merge to a protected branch?
      instructions:
      - text: Protect branch {branch} in project {id}.
        slots:
          branch: path.branch
          id: path.id
      - text: 'Protect {branch} in {id} and allow developers to push: {developers_can_push}.'
        slots:
          branch: path.branch
          id: path.id
          developers_can_push: requestBody.developers_can_push
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/branches/{branch}/unprotect'].put
  update:
    x-apievangelist-phrasing:
      intent: Unprotect a branch
      effect: write
      questions:
      - How do I remove protection from a branch?
      - Can I make a protected branch writable again?
      instructions:
      - text: Unprotect branch {branch} in project {id}.
        slots:
          branch: path.branch
          id: path.id
      - text: Remove protection from {branch} in {id}.
        slots:
          branch: path.branch
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/merged_branches'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete merged branches
      effect: destructive
      questions:
      - How do I clean up branches that have been merged into the default branch?
      - Can I remove all merged branches from a project?
      instructions:
      - text: Delete all merged branches in project {id}.
        slots:
          id: path.id
      - text: Clean up merged branches in {id}.
        slots:
          id: path.id
      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-branches-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.