GitLab · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for GitLab REST Files API
9 actions
9 updates
phrasing
extends
openapi/gitlab-files-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.
What the actions change
x-apievangelist-phrasing
Targets 9
$.info
$.paths['/api/v4/projects/{id}/repository/files/{file_path}/blame'].get
$.paths['/api/v4/projects/{id}/repository/files/{file_path}/blame'].head
$.paths['/api/v4/projects/{id}/repository/files/{file_path}/raw'].get
$.paths['/api/v4/projects/{id}/repository/files/{file_path}'].get
$.paths['/api/v4/projects/{id}/repository/files/{file_path}'].put
$.paths['/api/v4/projects/{id}/repository/files/{file_path}'].post
$.paths['/api/v4/projects/{id}/repository/files/{file_path}'].delete
$.paths['/api/v4/projects/{id}/repository/files/{file_path}'].head
OpenAPI Overlay
# 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 Files API
version: 1.0.0
extends: openapi/gitlab-files-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/files/{file_path}/blame'].get
update:
x-apievangelist-phrasing:
intent: Blame lines in a file
effect: read
questions:
- Who committed each line of a file in a branch?
- Can I blame a range of lines in a file to specific commits?
instructions:
- text: Blame lines {start} to {end} of {file_path} in project {id} at ref {ref}.
slots:
start: query.range[start]
end: query.range[end]
file_path: path.file_path
id: path.id
ref: query.ref
- text: Show blame for {file_path} in {id} on {ref}.
slots:
file_path: path.file_path
id: path.id
ref: query.ref
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/files/{file_path}/blame'].head
update:
x-apievangelist-phrasing:
intent: Check blame metadata for lines
effect: read
questions:
- Is blame information available for lines in a file?
- What metadata does blame return for a file range?
instructions:
- text: Check blame metadata for {file_path} in project {id} at ref {ref}.
slots:
file_path: path.file_path
id: path.id
ref: requestBody.ref
- text: Confirm blame lines exist for {file_path} in {id} on {ref}.
slots:
file_path: path.file_path
id: path.id
ref: requestBody.ref
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/files/{file_path}/raw'].get
update:
x-apievangelist-phrasing:
intent: Download raw file contents
effect: read
questions:
- How do I download the raw content of a file in a branch?
- Can I get the actual file bytes instead of the encoded blob?
instructions:
- text: Download the raw content of {file_path} in project {id} at ref {ref}.
slots:
file_path: path.file_path
id: path.id
ref: query.ref
- text: Get the raw bytes of {file_path} in {id} on {ref}.
slots:
file_path: path.file_path
id: path.id
ref: query.ref
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/files/{file_path}'].get
update:
x-apievangelist-phrasing:
intent: Get a file's info and content
effect: read
questions:
- What is the name, size and content of a file in a branch?
- Is the file content Base64 encoded?
instructions:
- text: Get file {file_path} in project {id} at ref {ref}.
slots:
file_path: path.file_path
id: path.id
ref: query.ref
- text: Show the size and Base64 content of {file_path} in {id} on {ref}.
slots:
file_path: path.file_path
id: path.id
ref: query.ref
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/files/{file_path}'].put
update:
x-apievangelist-phrasing:
intent: Update a file
effect: write
questions:
- How do I change an existing file's content?
- Can I overwrite a file in a branch with new content?
instructions:
- text: Update {file_path} in project {id} with {file}.
slots:
file_path: path.file_path
id: path.id
file: requestBody.file
- text: Replace the content of {file_path} in {id} with {file}.
slots:
file_path: path.file_path
id: path.id
file: requestBody.file
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/files/{file_path}'].post
update:
x-apievangelist-phrasing:
intent: Create a new file in a repository
effect: write
questions:
- How do I add a brand-new file to a GitLab repository?
- Can I create a single file in a project without making a full commit by hand?
- What do I need to supply to create a file at a given path in a project?
instructions:
- text: Create a new file at {file_path} in project {id} with content {file}.
slots:
file_path: path.file_path
id: path.id
file: requestBody.file
- text: Add a new file {file} to repo {id} at the path {file_path}.
slots:
file: requestBody.file
id: path.id
file_path: path.file_path
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/files/{file_path}'].delete
update:
x-apievangelist-phrasing:
intent: Delete a file
effect: destructive
questions:
- How do I remove a file from a repository?
- Can I delete a file in a branch and commit the change?
instructions:
- text: Delete {file_path} from project {id} in branch {branch} with message {commit_message}.
slots:
file_path: path.file_path
id: path.id
branch: query.branch
commit_message: query.commit_message
- text: Remove {file_path} in {id} on {branch} using commit {commit_message}.
slots:
file_path: path.file_path
id: path.id
branch: query.branch
commit_message: query.commit_message
method: generated
generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/files/{file_path}'].head
update:
x-apievangelist-phrasing:
intent: Get metadata for a repository file
effect: read
questions:
- What are the metadata for a file in a repository?
- Can I check a file's existence without downloading it?
instructions:
- text: Get file {file_path} metadata in project {id}.
slots:
file_path: path.file_path
id: path.id
- text: Check whether file {file_path} exists in {id} at commit {ref}.
slots:
file_path: path.file_path
id: path.id
ref: requestBody.ref
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.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/gitlab-files-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.