The https://gitlab.example.com/api/v4/ is API address of your GitLab instance (if you are using GitLab.com, choose https://gitlab.com/api/v4/ instead) , and /api/v4/ is a prefix and should be used for all scenarios!
GitLab API provides so many resources, see: GitLab API

Some examples:

You need to get your project's releases (Projects API):

curl --header "PRIVATE-TOKEN`:` ${YOUR_TOKEN}" http://gitlab.example.com/api/v4/projects/${PROJECT_ID}/releases/

You want to create a new Issue (Issue API):

curl --header 'Content-Type:application/json' --header "PRIVATE-TOKEN`:` ${YOUR_TOKEN}" --request POST "http://gitlab.example.com/api/v4/projects/${PROJECT_ID}/issues?title=${ISSUE_TITLE}&labels=${LABELS}&description=${ISSUE_DESCRIPTION}"
Answer from MrRolling on Stack Overflow
🌐
GitLab
docs.gitlab.com › gitlab docs › extend › rest api › resources
REST API resources | GitLab Docs
The GitLab REST API gives you programmatic control over GitLab resources. Build integrations with your existing tools, automate repetitive tasks, and extract data for custom reports.
CI/CD YAML syntax reference
Use artifacts:public to control whether job artifacts in public pipelines are available for download with the GitLab UI and API by anonymous users, or Guest and Reporter roles.
REST API
Use the GitLab REST API for programmatic interaction with GitLab. Includes requests, rate limits, pagination, encoding, versioning, and response handling.
Commits
Documentation for the REST API for Git commits in GitLab.
Webhooks
Configuration: GitLab Self-Managed administrators can modify the push_event_hooks_limit setting through the application settings API.
🌐
GitLab
docs.gitlab.com › gitlab docs › extend › rest api
REST API | GitLab Docs
Use the GitLab REST API for programmatic interaction with GitLab. Includes requests, rate limits, pagination, encoding, versioning, and response handling.
🌐
GitLab
docs.gitlab.com › gitlab docs › extend › rest api › resources › projects
Projects API | GitLab Docs
REST API to create, retrieve, update, delete, and manage projects and project features.
🌐
GitLab
docs.gitlab.com › gitlab docs › extend
Extend with GitLab | GitLab Docs
Use the GitLab REST API for programmatic interaction with GitLab.
🌐
Python GitLab
python-gitlab.readthedocs.io › en › stable › api-usage.html
Using the REST API - python-gitlab v8.5.0
All endpoints that support get() and list() also support a head() method. In this case, the server responds only with headers and not the response JSON or body. This allows more efficient API calls, such as checking repository file size without fetching its content. ... In some cases, GitLab may omit specific headers.
🌐
GitLab
docs.gitlab.com › gitlab docs › extend › rest api › openapi
OpenAPI | GitLab Docs
GitLab documents its REST API using the OpenAPI 3.0 specification (formerly called Swagger), a standard, platform-independent format for describing RESTful APIs. The API code is the single source of truth for the REST API.
🌐
Python GitLab
python-gitlab.readthedocs.io › en › stable › api › gitlab.html
API reference (gitlab package) - python-gitlab v8.5.0
class gitlab.Gitlab(url: str | None = None, private_token: str | None = None, oauth_token: str | None = None, job_token: str | None = None, ssl_verify: bool | str = True, http_username: str | None = None, http_password: str | None = None, timeout: float | None = None, api_version: str = '4', per_page: int | None = None, pagination: str | None = None, order_by: str | None = None, user_agent: str = 'python-gitlab/8.5.0', retry_transient_errors: bool = False, keep_base_url: bool = False, **kwargs: Any)¶
🌐
Rewind
rewind.com › home › blog › backup blogs
Using the GitLab API | Rewind
September 3, 2024 - In order to use personal access tokens, you can authenticate with the API by passing it in either the `private_token` parameter or passing it as the `PRIVATE-TOKEN` header. An example of how each would look is provided below. Passing personal access tokens as a URL parameter: curl "https://gitlab.example.com/api/v4/projects?private_token=<your_access_token>"
Find elsewhere
🌐
MetaCPAN
metacpan.org › pod › GitLab::API::v4
GitLab::API::v4 - A complete GitLab API v4 client. - metacpan.org
The URL to your v4 API endpoint. Typically this will be something like https://git.example.com/api/v4. A GitLab API OAuth2 token.
🌐
GeeksforGeeks
geeksforgeeks.org › git › how-to-access-the-gitlab-api
How To Access The GitLab API? - GeeksforGeeks
July 23, 2025 - Click on your avatar in the top-right corner of the GitLab interface. Select Edit Profile. ... Click on Access Tokens in the left sidebar. Enter a name for your token, and set an expiration date if desired. Select the required scopes (permissions) for the API access you need, such as API, read_user, or read_repository.
🌐
Apidog
gitlab.apidog.io
Introduction - Gitlab
An OpenAPI definition for the GitLab REST API. Few API resources or endpoints are currently included.
🌐
Bump
bump.sh › demo › doc › gitlab
Gitlab (Unofficial) API documentation
July 1, 2026 - An OpenAPI definition for the GitLab REST API. Few API resources or endpoints are currently included. The intent is to expand this to match the entire Markdown documentation of ...
🌐
GitLab
docs.gitlab.com › gitlab docs › extend › rest api › authentication
REST API authentication | GitLab Docs
Authenticate with the GitLab REST API by using OAuth 2.0, access, and job tokens.
🌐
GitLab
docs.gitlab.com › gitlab docs › extend › rest api › resources › users
Users API | GitLab Docs
curl --request GET \ --header "PRIVATE-TOKEN: <your_access_token>" \ --url "https://gitlab.example.com/api/v4/user_counts"
🌐
Python GitLab
python-gitlab.readthedocs.io › en › stable › api-objects.html
API examples - python-gitlab v8.4.0
python-gitlab v8.4.0 · Table of Contents · Using the CLI · Using the REST API · Advanced usage · Using the GraphQL API (beta) CLI examples · API examples · Access requests · Appearance · Applications · Award Emojis · Badges · Branches · Migrations (Bulk Imports) Broadcast messages ·
🌐
GitLab
gitlab.com › gitlab.org › api
API · GitLab
December 10, 2024 - This subgroup contains various client for the GitLab APIs.
🌐
GitHub
github.com › gitlab4j › gitlab4j-api
GitHub - gitlab4j/gitlab4j-api: GitLab4J API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories via the GitLab REST API · GitHub
January 1, 2017 - GitLab4J API (gitlab4j-api) provides a full featured Java client library for working with GitLab repositories via the GitLab REST API - gitlab4j/gitlab4j-api
Author: gitlab4j