GitLab CI/CD tags API

Operations about tags

Operations 5

GET /api/v4/projects/{id}/repository/tags #
POST /api/v4/projects/{id}/repository/tags #
GET /api/v4/projects/{id}/repository/tags/{tag_name} #
DELETE /api/v4/projects/{id}/repository/tags/{tag_name} #
GET /api/v4/projects/{id}/repository/tags/{tag_name}/signature #

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-tags-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-tags-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab access_requests Tags API
  version: v4
  description: Operations related to access requests
servers:
- url: https://gitlab.com
tags:
- name: tags
  description: Operations about tags
paths:
  /api/v4/projects/{id}/repository/tags:
    get:
      description: Get a project repository tags
      parameters:
      - in: path
        name: id
        description: The ID or URL-encoded path of the project
        required: true
        schema:
          type: string
      - in: query
        name: sort
        description: Return tags sorted in updated by `asc` or `desc` order.
        required: false
        schema:
          type: string
          enum:
          - asc
          - desc
          default: desc
      - in: query
        name: order_by
        description: Return tags ordered by `name`, `updated`, `version` fields.
        required: false
        schema:
          type: string
          enum:
          - name
          - updated
          - version
          default: updated
      - in: query
        name: search
        description: Return list of tags matching the search criteria
        required: false
        schema:
          type: string
      - in: query
        name: page_token
        description: Name of tag to start the pagination from
        required: false
        schema:
          type: string
      - in: query
        name: page
        description: Current page number
        required: false
        example: 1
        schema:
          type: integer
          format: int32
          default: 1
      - in: query
        name: per_page
        description: Number of items per page
        required: false
        example: 20
        schema:
          type: integer
          format: int32
          default: 20
      responses:
        '200':
          description: Get a project repository tags
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/API_Entities_Tag'
        '403':
          description: Unauthenticated
        '404':
          description: Not found
        '422':
          description: Unprocessable entity
        '503':
          description: Service unavailable
      tags:
      - tags
      operationId: getApiV4ProjectsIdRepositoryTags
    post:
      description: Create a new repository tag
      parameters:
      - in: path
        name: id
        description: The ID or URL-encoded path of the project
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Create a new repository tag
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_Tag'
        '400':
          description: Bad request
        '403':
          description: Unauthenticated
        '404':
          description: Not found
      tags:
      - tags
      operationId: postApiV4ProjectsIdRepositoryTags
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postApiV4ProjectsIdRepositoryTags'
        required: true
  /api/v4/projects/{id}/repository/tags/{tag_name}:
    get:
      description: Get a single repository tag
      parameters:
      - in: path
        name: id
        description: The ID or URL-encoded path of the project
        required: true
        schema:
          type: string
      - in: path
        name: tag_name
        description: The name of the tag
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Get a single repository tag
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_Tag'
        '403':
          description: Unauthenticated
        '404':
          description: Not found
      tags:
      - tags
      operationId: getApiV4ProjectsIdRepositoryTagsTagName
    delete:
      description: Delete a repository tag
      parameters:
      - in: path
        name: id
        description: The ID or URL-encoded path of the project
        required: true
        schema:
          type: string
      - in: path
        name: tag_name
        description: The name of the tag
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Delete a repository tag
        '400':
          description: Bad request
        '403':
          description: Unauthenticated
        '404':
          description: Not found
        '412':
          description: Precondition failed
      tags:
      - tags
      operationId: deleteApiV4ProjectsIdRepositoryTagsTagName
  /api/v4/projects/{id}/repository/tags/{tag_name}/signature:
    get:
      description: Get a tag's signature
      parameters:
      - in: path
        name: id
        description: The ID or URL-encoded path of the project
        required: true
        schema:
          type: string
      - in: path
        name: tag_name
        description: The name of the tag
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Get a tag's signature
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_TagSignature'
        '404':
          description: Not found
      tags:
      - tags
      operationId: getApiV4ProjectsIdRepositoryTagsTagNameSignature
components:
  schemas:
    API_Entities_TagRelease:
      type: object
      properties:
        tag_name:
          type: string
          example: 1.0.0
        description:
          type: string
          example: Amazing release. Wow
      required:
      - tag_name
      - description
    API_Entities_TagSignature:
      type: object
      properties:
        signature_type:
          type: string
          example: PGP
        signature:
          type: object
      required:
      - signature_type
      - signature
      description: API_Entities_TagSignature model
    API_Entities_Tag:
      type: object
      properties:
        name:
          type: string
          example: v1.0.0
        message:
          type: string
          example: Release v1.0.0
        target:
          type: string
          example: 2695effb5807a22ff3d138d593fd856244e155e7
        commit:
          $ref: '#/components/schemas/API_Entities_Commit'
        release:
          $ref: '#/components/schemas/API_Entities_TagRelease'
        protected:
          type: boolean
          example: true
        created_at:
          type: string
          format: date-time
          example: '2023-10-12T02:16:52.000Z'
      required:
      - name
      - message
      - target
      - commit
      - protected
      - created_at
      description: API_Entities_Tag model
    API_Entities_Commit:
      type: object
      properties:
        id:
          type: string
          example: 2695effb5807a22ff3d138d593fd856244e155e7
        short_id:
          type: string
          example: 2695effb
        created_at:
          type: string
          format: date-time
          example: '2017-07-26T11:08:53.000+02:00'
        parent_ids:
          type: array
          items:
            type: string
          example:
          - 2a4b78934375d7f53875269ffd4f45fd83a84ebe
        title:
          type: string
          example: Initial commit
        message:
          type: string
          example: Initial commit
        author_name:
          type: string
          example: John Smith
        author_email:
          type: string
          example: john@example.com
        authored_date:
          type: string
          format: date-time
          example: '2012-05-28T04:42:42-07:00'
        committer_name:
          type: string
          example: Jack Smith
        committer_email:
          type: string
          example: jack@example.com
        committed_date:
          type: string
          format: date-time
          example: '2012-05-28T04:42:42-07:00'
        trailers:
          type: object
          example:
            Merged-By: Jane Doe janedoe@gitlab.com
        extended_trailers:
          type: object
          example:
            Signed-off-by:
            - John Doe <johndoe@gitlab.com>
            - Jane Doe <janedoe@gitlab.com>
        web_url:
          type: string
          example: https://gitlab.example.com/janedoe/gitlab-foss/-/commit/ed899a2f4b50b4370feeea94676502b42383c746
      required:
      - id
      - short_id
      - created_at
      - parent_ids
      - title
      - message
      - author_name
      - author_email
      - authored_date
      - committer_name
      - committer_email
      - committed_date
      - trailers
      - extended_trailers
      - web_url
      description: API_Entities_Commit model
    postApiV4ProjectsIdRepositoryTags:
      type: object
      properties:
        tag_name:
          type: string
          description: The name of the tag
          example: v.1.0.0
        ref:
          type: string
          description: The commit sha or branch name
          example: 2695effb5807a22ff3d138d593fd856244e155e7
        message:
          type: string
          description: Specifying a message creates an annotated tag
          example: Release 1.0.0
      required:
      - tag_name
      - ref
      description: Create a new repository tag
  securitySchemes:
    access_token_header:
      type: apiKey
      name: PRIVATE-TOKEN
      in: header
    access_token_query:
      type: apiKey
      name: private_token
      in: query