GitLab Job artifacts API

Use this API to download, keep, and delete [job artifacts](https://docs.gitlab.com/ci/jobs/job_artifacts/).

Operations 8

GET /api/v4/projects/{id}/jobs/artifacts/{ref_name}/download Retrieve job artifacts #
GET /api/v4/projects/{id}/jobs/artifacts/{ref_name}/raw/{artifact_path} Download a specific file from artifacts archive from a ref #
GET /api/v4/projects/{id}/jobs/{job_id}/artifacts Download an artifact from a job #
DELETE /api/v4/projects/{id}/jobs/{job_id}/artifacts Delete job artifacts #
GET /api/v4/projects/{id}/jobs/{job_id}/artifacts/tree List all files in an artifacts archive #
GET /api/v4/projects/{id}/jobs/{job_id}/artifacts/{artifact_path} Download a specific file from artifacts archive #
POST /api/v4/projects/{id}/jobs/{job_id}/artifacts/keep Retain job artifacts #
DELETE /api/v4/projects/{id}/artifacts Delete all job artifacts in a project #

Documentation

📖
Documentation
https://docs.gitlab.com/api/openapi/
📖
Documentation
https://docs.gitlab.com/api/issues/
📖
Authentication
https://docs.gitlab.com/api/rest/authentication/
📖
Documentation
https://docs.gitlab.com/api/merge_requests/
📖
Documentation
https://docs.gitlab.com/api/pipelines/
📖
Documentation
https://docs.gitlab.com/api/jobs/
📖
Documentation
https://docs.gitlab.com/api/runners/
📖
Documentation
https://docs.gitlab.com/api/users/
📖
Documentation
https://docs.gitlab.com/api/repositories/
📖
Documentation
https://docs.gitlab.com/api/commits/
📖
Documentation
https://docs.gitlab.com/api/branches/
📖
Documentation
https://docs.gitlab.com/api/tags/
📖
Documentation
https://docs.gitlab.com/api/releases/
📖
Documentation
https://docs.gitlab.com/api/environments/
📖
Documentation
https://docs.gitlab.com/api/deployments/
📖
Documentation
https://docs.gitlab.com/api/pipeline_schedules/
📖
Documentation
https://docs.gitlab.com/api/labels/
📖
Documentation
https://docs.gitlab.com/api/milestones/
📖
Documentation
https://docs.gitlab.com/api/notes/
📖
Documentation
https://docs.gitlab.com/api/snippets/
📖
Documentation
https://docs.gitlab.com/api/packages/
📖
Documentation
https://docs.gitlab.com/api/container_registry/
📖
Documentation
https://docs.gitlab.com/api/vulnerabilities/
📖
Documentation
https://docs.gitlab.com/api/deploy_keys/
📖
Documentation
https://docs.gitlab.com/api/protected_branches/
📖
Documentation
https://docs.gitlab.com/api/wikis/
📖
Documentation
https://docs.gitlab.com/api/events/
📖
Documentation
https://docs.gitlab.com/api/search/
📖
Documentation
https://docs.gitlab.com/api/namespaces/
📖
Documentation
https://docs.gitlab.com/api/groups/
📖
Documentation
https://docs.gitlab.com/api/projects/
📖
Documentation
https://docs.gitlab.com/api/applications/
📖
Documentation
https://docs.gitlab.com/api/avatar/
📖
Documentation
https://docs.gitlab.com/api/broadcast_messages/
📖
Documentation
https://docs.gitlab.com/api/bulk_imports/
📖
Documentation
https://docs.gitlab.com/api/settings/
📖
Documentation
https://docs.gitlab.com/api/metadata/
📖
Documentation
https://docs.gitlab.com/api/version/
📖
Documentation
https://docs.gitlab.com/api/rest/
📖
APIReference
https://docs.gitlab.com/api/api_resources/
📖
RateLimits
https://docs.gitlab.com/security/rate_limits/
📖
Documentation
https://docs.gitlab.com/api/oauth2/
📖
Authentication
https://docs.gitlab.com/integration/oauth_provider/
📖
Documentation
https://docs.gitlab.com/user/project/integrations/webhooks.html
📖
APIReference
https://docs.gitlab.com/api/project_webhooks/

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-put-api-v4-application-settings-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-apientities-geo-node-status-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-apientities-geo-site-status-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-apientities-application-setting-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-post-api-v4-geo-status-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-put-api-v4-projects-id-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-cluster-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-batched-background-migration-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-ci-variable-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-dictionary-table-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-plan-limit-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-appearance-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-avatar-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-bulk-imports-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-bulk-import-schema.json
📊
JSONSchema
https://artifacts.apis.io/gitlab/json-schema/gitlab-api-entities-metadata-schema.json

Other Resources

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:gitlab-job-artifacts-api"
All apis
curl "https://apis.io/api/v1/apis?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. See our Privacy Policy and Terms.

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

OpenAPI Specification

gitlab-job-artifacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab REST Job artifacts API
  description: GitLab REST API used to interact with a GitLab installation.
  termsOfService: https://handbook.gitlab.com/handbook/legal/api-terms/
  version: '19.6'
  license:
    name: CC BY-SA 4.0
    url: https://gitlab.com/gitlab-org/gitlab/-/blob/master/LICENSE
    x-gitlab-description: The license applies to the OpenAPI specification document itself. For terms governing use of the GitLab API, see the termsOfService field.
servers:
- url: https://{hostname}
  description: GitLab REST API
  variables:
    hostname:
      default: gitlab.com
      description: Your GitLab instance hostname
security:
- http: []
- oauth2: []
- apiKey: []
tags:
- name: Job artifacts
  description: Use this API to download, keep, and delete job artifacts.
  x-displayName: Job artifacts
  externalDocs:
    url: https://docs.gitlab.com/api/job_artifacts/
paths:
  /api/v4/projects/{id}/jobs/artifacts/{ref_name}/download:
    get:
      operationId: getApiV4ProjectsIdJobsArtifactsRefNameDownload
      summary: Retrieve job artifacts
      description: Retrieves the artifacts archive for the latest successful job on a specified branch or tag.
      tags:
      - Job artifacts
      responses:
        '200':
          description: OK
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '400':
          description: Bad Request
      parameters:
      - name: id
        required: true
        description: ID or URL-encoded path of the project.
        schema:
          oneOf:
          - type: string
          - type: integer
        in: path
      - name: ref_name
        required: true
        description: Branch or tag name in the repository. `HEAD` or SHA references are not supported. For merge request pipelines, use `refs/merge-requests/:iid/head` instead of the branch name.
        schema:
          type: string
        in: path
      - name: job
        required: true
        description: Name of the job.
        schema:
          type:
          - string
          - 'null'
        in: query
      - name: job_token
        required: false
        description: CI/CD job token for multi-project pipelines. Premium and Ultimate only.
        schema:
          type:
          - string
          - 'null'
        in: query
      - name: search_recent_successful_pipelines
        required: false
        description: If `true`, searches across recent successful pipelines instead of just the latest one. [Introduced](https://gitlab.com/gitlab-org/gitlab/-/work_items/515864) in GitLab 18.7 [with a feature flag](https://docs.gitlab.com/administration/feature_flags/) named `ci_search_recent_successful_pipelines`. Disabled by default.
        schema:
          type: boolean
          default: false
        in: query
      - name: download_mode
        required: false
        description: Requested download transfer mode (`proxy` or `direct`). Only honored when allowed by the object storage configuration.
        schema:
          type:
          - string
          - 'null'
          enum:
          - proxy
          - direct
          - null
        in: query
  /api/v4/projects/{id}/jobs/artifacts/{ref_name}/raw/{artifact_path}:
    get:
      operationId: getApiV4ProjectsIdJobsArtifactsRefNameRawArtifactPath
      summary: Download a specific file from artifacts archive from a ref
      description: This feature was introduced in GitLab 11.5
      tags:
      - Job artifacts
      responses:
        '200':
          description: OK
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
      parameters:
      - name: id
        required: true
        description: ID or URL-encoded path of the project.
        schema:
          oneOf:
          - type: string
          - type: integer
        in: path
      - name: ref_name
        required: true
        description: Branch or tag name in the repository. `HEAD` or SHA references are not supported. For merge request pipelines, use `refs/merge-requests/:iid/head` instead of the branch name.
        schema:
          type: string
        in: path
      - name: job
        required: true
        description: Name of the job.
        schema:
          type:
          - string
          - 'null'
        in: query
      - name: artifact_path
        required: true
        description: Path to a file inside the artifacts archive.
        schema:
          type: string
        in: path
      - name: job_token
        required: false
        description: CI/CD job token for multi-project pipelines. Premium and Ultimate only.
        schema:
          type:
          - string
          - 'null'
        in: query
      - name: search_recent_successful_pipelines
        required: false
        description: If `true`, searches across recent successful pipelines instead of just the latest one. [Introduced](https://gitlab.com/gitlab-org/gitlab/-/work_items/515864) in GitLab 18.7 [with a feature flag](https://docs.gitlab.com/administration/feature_flags/) named `ci_search_recent_successful_pipelines`. Disabled by default.
        schema:
          type: boolean
          default: false
        in: query
  /api/v4/projects/{id}/jobs/{job_id}/artifacts:
    get:
      operationId: getApiV4ProjectsIdJobsJobIdArtifacts
      summary: Download an artifact from a job
      description: This feature was introduced in GitLab 8.5. The `file_type` attribute was added in GitLab 19.4.
      tags:
      - Job artifacts
      responses:
        '200':
          description: OK
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
      parameters:
      - name: id
        required: true
        description: ID or URL-encoded path of the project.
        schema:
          oneOf:
          - type: string
          - type: integer
        in: path
      - name: job_id
        required: true
        description: ID of the job.
        schema:
          type: integer
        in: path
      - name: file_type
        required: false
        description: Type of artifact to download. Set a specific report type to download that report file directly instead of the full artifacts archive. `performance` and `browser_performance` share a report group. If the job uploaded both, the requested type is returned, and if it uploaded only one, that artifact is returned whichever type was requested. [Introduced](https://gitlab.com/gitlab-org/gitlab/-/work_items/35805) in GitLab 19.4.
        schema:
          type: string
          enum:
          - accessibility
          - api_fuzzing
          - archive
          - cobertura
          - jacoco
          - codequality
          - container_scanning
          - dast
          - dependency_scanning
          - dotenv
          - junit
          - license_scanning
          - lsif
          - metrics
          - performance
          - browser_performance
          - load_performance
          - sast
          - secret_detection
          - requirements
          - requirements_v2
          - cluster_image_scanning
          - cyclonedx
          - sarif
          default: archive
        in: query
      - name: job_token
        required: false
        description: CI/CD job token for multi-project pipelines. Premium and Ultimate only.
        schema:
          type:
          - string
          - 'null'
        in: query
      - name: download_mode
        required: false
        description: Requested download transfer mode (`proxy` or `direct`). Only honored when allowed by the object storage configuration.
        schema:
          type:
          - string
          - 'null'
          enum:
          - proxy
          - direct
          - null
        in: query
    delete:
      operationId: deleteApiV4ProjectsIdJobsJobIdArtifacts
      summary: Delete job artifacts
      description: Deletes job artifacts from a specified job in a project.
      tags:
      - Job artifacts
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '409':
          description: Conflict
        '404':
          description: Not Found
        '400':
          description: Bad Request
      parameters:
      - name: id
        required: true
        description: ID or URL-encoded path of the project.
        schema:
          oneOf:
          - type: string
          - type: integer
        in: path
      - name: job_id
        required: true
        description: ID of the job.
        schema:
          type: integer
        in: path
  /api/v4/projects/{id}/jobs/{job_id}/artifacts/tree:
    get:
      operationId: getApiV4ProjectsIdJobsJobIdArtifactsTree
      summary: List all files in an artifacts archive
      description: Lists all files in a specified artifacts archive without extracting them.
      tags:
      - Job artifacts
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/APIEntitiesCiJobArtifactEntry'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '400':
          description: Bad Request
      parameters:
      - name: id
        required: true
        description: ID or URL-encoded path of the project.
        schema:
          oneOf:
          - type: string
          - type: integer
        in: path
      - name: job_id
        required: true
        description: ID of the job.
        schema:
          type: integer
        in: path
        example: 42
      - name: path
        required: false
        description: Path to browse in the artifacts archive. Defaults to the root directory.
        schema:
          type: string
          default: ''
        in: query
        example: coverage/reports
      - name: recursive
        required: false
        description: If `true`, returns all entries recursively.
        schema:
          type: boolean
          default: false
        in: query
        example: false
      - name: job_token
        required: false
        description: CI/CD job token for multi-project pipelines. Premium and Ultimate only.
        schema:
          type:
          - string
          - 'null'
        in: query
      - name: page
        required: false
        description: Page number of results to retrieve.
        schema:
          type: integer
          default: 1
        in: query
        example: 1
      - name: per_page
        required: false
        description: Number of items to list per page.
        schema:
          type: integer
          default: 20
        in: query
        example: 20
  /api/v4/projects/{id}/jobs/{job_id}/artifacts/{artifact_path}:
    get:
      operationId: getApiV4ProjectsIdJobsJobIdArtifactsArtifactPath
      summary: Download a specific file from artifacts archive
      description: This feature was introduced in GitLab 10.0
      tags:
      - Job artifacts
      responses:
        '200':
          description: OK
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
      parameters:
      - name: id
        required: true
        description: ID or URL-encoded path of the project.
        schema:
          oneOf:
          - type: string
          - type: integer
        in: path
      - name: job_id
        required: true
        description: ID of the job.
        schema:
          type: integer
        in: path
      - name: artifact_path
        required: true
        description: Path to a file inside the artifacts archive.
        schema:
          type: string
        in: path
      - name: job_token
        required: false
        description: CI/CD job token for multi-project pipelines. Premium and Ultimate only.
        schema:
          type:
          - string
          - 'null'
        in: query
  /api/v4/projects/{id}/jobs/{job_id}/artifacts/keep:
    post:
      operationId: postApiV4ProjectsIdJobsJobIdArtifactsKeep
      summary: Retain job artifacts
      description: Retains job artifacts. Prevents artifacts for a job from being automatically deleted when they reach their expiration date.
      tags:
      - Job artifacts
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIEntitiesCiJob'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '400':
          description: Bad Request
      parameters:
      - name: id
        required: true
        description: ID or URL-encoded path of the project.
        schema:
          oneOf:
          - type: string
          - type: integer
        in: path
      - name: job_id
        required: true
        description: ID of the job.
        schema:
          type: integer
        in: path
  /api/v4/projects/{id}/artifacts:
    delete:
      operationId: deleteApiV4ProjectsIdArtifacts
      summary: Delete all job artifacts in a project
      description: Deletes job artifacts from all jobs in a specified project.
      tags:
      - Job artifacts
      responses:
        '202':
          description: Accepted
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '409':
          description: Conflict
        '404':
          description: Not Found
        '400':
          description: Bad Request
      parameters:
      - name: id
        required: true
        description: ID or URL-encoded path of the project.
        schema:
          oneOf:
          - type: string
          - type: integer
        in: path
components:
  schemas:
    APIEntitiesCiRunnerManager:
      type: object
      properties:
        id:
          type: integer
          format: int64
          example: 8
        system_id:
          type: string
          example: runner-1
        version:
          type: string
          example: 16.11.0
        revision:
          type: string
          example: 91a27b2a
        platform:
          type: string
          example: linux
        architecture:
          type: string
          example: amd64
        created_at:
          type: string
          example: '2023-10-24T01:27:06.549Z'
        contacted_at:
          type: string
          example: '2023-10-24T01:27:06.549Z'
        ip_address:
          type: string
          example: 127.0.0.1
        status:
          type: string
          example: online
        job_execution_status:
          type: string
          enum:
          - active
          - idle
          example: idle
    APIEntitiesCommit:
      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
          example:
          - 2a4b78934375d7f53875269ffd4f45fd83a84ebe
          items:
            type: string
        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
    APIEntitiesCustomAttribute:
      type: object
      properties:
        key:
          type: string
          example: foo
        value:
          type: string
          example: bar
    APIEntitiesCiRunner:
      type: object
      properties:
        id:
          type: integer
          format: int64
          example: 8
        description:
          type: string
          example: test-1-20150125
        ip_address:
          type: string
          example: 127.0.0.1
        active:
          type: boolean
          example: true
        paused:
          type: boolean
          example: false
        is_shared:
          type: boolean
          example: true
        runner_type:
          type: string
          enum:
          - instance_type
          - group_type
          - project_type
          example: instance_type
        name:
          type: string
          example: test
        online:
          type: boolean
          example: true
        created_by:
          $ref: '#/components/schemas/APIEntitiesUserBasic'
        created_at:
          type: string
          format: date-time
          example: '2025-05-03T00:00:00.000Z'
        status:
          type: string
          example: online
        job_execution_status:
          type: string
          enum:
          - active
          - idle
          example: idle
    APIEntitiesCiJobArtifact:
      type: object
      properties:
        file_type:
          type: string
          enum:
          - archive
          - metadata
          - trace
          - junit
          - sast
          - dependency_scanning
          - container_scanning
          - dast
          - codequality
          - license_scanning
          - performance
          - metrics
          - metrics_referee
          - network_referee
          - lsif
          - dotenv
          - cobertura
          - terraform
          - accessibility
          - cluster_applications
          - secret_detection
          - requirements
          - coverage_fuzzing
          - browser_performance
          - load_performance
          - api_fuzzing
          - cluster_image_scanning
          - cyclonedx
          - requirements_v2
          - annotations
          - repository_xray
          - jacoco
          - sarif
          example: archive
        size:
          type: integer
          example: 1000
        filename:
          type: string
          example: artifacts.zip
        file_format:
          type: string
          enum:
          - raw
          - zip
          - gzip
          example: zip
    APIEntitiesCiJobArtifactFile:
      type: object
      properties:
        filename:
          type: string
          example: artifacts.zip
        size:
          type: integer
          example: 1000
    APIEntitiesCiJob:
      type: object
      properties:
        id:
          type: integer
          format: int64
          example: 1
        status:
          type: string
          example: waiting_for_resource
        stage:
          type: string
          example: deploy
        name:
          type: string
          example: deploy_to_production
        ref:
          type: string
          example: main
        tag:
          type: boolean
        coverage:
          type: number
          format: float
          example: 98.29
        allow_failure:
          type: boolean
        created_at:
          type: string
          format: date-time
          example: '2015-12-24T15:51:21.880Z'
        started_at:
          type: string
          format: date-time
          example: '2015-12-24T17:54:30.733Z'
        finished_at:
          type: string
          format: date-time
          example: '2015-12-24T17:54:31.198Z'
        erased_at:
          type: string
          format: date-time
          example: '2015-12-24T18:00:29.728Z'
        duration:
          type: number
          description: Time spent running
          format: float
          example: 0.465
        queued_duration:
          type: number
          description: Time spent enqueued
          format: float
          example: 0.123
        user:
          $ref: '#/components/schemas/APIEntitiesUser'
        commit:
          $ref: '#/components/schemas/APIEntitiesCommit'
        pipeline:
          $ref: '#/components/schemas/APIEntitiesCiPipelineBasic'
        failure_reason:
          type: string
          example: script_failure
        web_url:
          type: string
          example: https://example.com/foo/bar/-/jobs/1
        project:
          type: object
          properties:
            ci_job_token_scope_enabled:
              type: string
              example: false
        artifacts_file:
          $ref: '#/components/schemas/APIEntitiesCiJobArtifactFile'
        artifacts:
          type: array
          items:
            $ref: '#/components/schemas/APIEntitiesCiJobArtifact'
        runner:
          $ref: '#/components/schemas/APIEntitiesCiRunner'
        runner_manager:
          $ref: '#/components/schemas/APIEntitiesCiRunnerManager'
        artifacts_expire_at:
          type: string
          format: date-time
          example: '2016-01-19T09:05:50.355Z'
        archived:
          type: boolean
          example: false
        tag_list:
          type: array
          example:
          - ubuntu18
          - docker runner
          items:
            type: string
    APIEntitiesCiJobArtifactEntry:
      type: object
      properties:
        name:
          type: string
          example: index.html
        path:
          type: string
          example: coverage/index.html
        type:
          type: string
          enum:
          - file
          - directory
          example: file
        size:
          type: integer
          example: 12345
        mode:
          type: string
          example: '100644'
    APIEntitiesCiPipelineBasic:
      type: object
      properties:
        id:
          type: integer
          format: int64
          example: 1
        iid:
          type: integer
          example: 2
        project_id:
          type: integer
          format: int64
          example: 3
        sha:
          type: string
          example: 0ec9e58fdfca6cdd6652c083c9edb53abc0bad52
        ref:
          type: string
          example: feature-branch
        status:
          type: string
          example: success
        source:
          type: string
          example: push
        created_at:
          type: string
          format: date-time
          example: '2022-10-21T16:49:48.000+02:00'
        updated_at:
          type: string
          format: date-time
          example: '2022-10-21T16:49:48.000+02:00'
        web_url:
          type: string
          example: https://gitlab.example.com/gitlab-org/gitlab-foss/-/pipelines/61
    APIEntitiesUser:
      type: object
      properties:
        id:
          type: integer
          format: int64
          example: 1
        username:
          type: string
          example: admin
        public_email:
          type: string
          example: john@example.com
        name:
          type: string
          example: Administrator
        state:
          type: string
          example: active
        locked:
          type: boolean
        avatar_url:
          type: string
          example: https://gravatar.com/avatar/1
        avatar_path:
          type: string
          example: /user/avatar/28/The-Big-Lebowski-400-400.png
        custom_attributes:
          type: array
          items:
            $ref: '#/components/schemas/APIEntitiesCustomAttribute'
        web_url:
          type: string
          example: https://gitlab.example.com/root
        created_at:
          type: string
        bio:
          type: string
        location:
          type: string
        linkedin:
          type: string
        twitter:
          type: string
        discord:
          type: string
        website_url:
          type: string
        github:
          type: string
        job_title:
          type: string
        pronouns:
          type: string
        organization:
          type: string
        bot:
          type: boolean
        work_information:
          type: string
        followers:
          type: string
        following:
          type: string
        is_followed:
          type: string
        local_time:
          type: string
    APIEntitiesUserBasic:
      type: object
      properties:
        id:
          type: integer
          format: int64
          example: 1
        username:
          type: string
          example: admin
        public_email:
          type: string
          example: john@example.com
        name:
          type: string
          example: Administrator
        state:
          type: string
          example: active
        locked:
          type: boolean
        avatar_url:
          type: string
          example: https://gravatar.com/avatar/1
        avatar_path:
          type: string
          example: /user/avatar/28/The-Big-Lebowski-400-400.png
        custom_attributes:
          type: array
          items:
            $ref: '#/components/schemas/APIEntitiesCustomAttribute'
        web_url:
          type: string
          example: https://gitlab.example.com/root
  securitySchemes:
    http:
      type: http
      scheme: bearer
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://gitlab.com/oauth/authorize
          tokenUrl: https://gitlab.com/oauth/token
          refreshUrl: https://gitlab.com/oauth/token
          scopes:
            api: Grants complete read/write access to the API, including all groups and projects, the container registry, the dependency proxy, and the package registry.
            read_api: Grants read access to the API, including all groups and projects, the container registry, and the package registry.
            read_user: Grants read-only access to your profile through the /user API endpoint, which includes username, public email, and full name. Also grants access to read-only API endpoints under /users.
            create_runner: Grants create access to the runners.
            manage_runner: Grants access to manage the runners.
            k8s_proxy: Grants permission to perform Kubernetes API calls using the agent for Kubernetes.
            self_rotate: Grants permission for token to rotate itself.
            mcp: Grants read-write access to remote Model Context Protocol (MCP) server for tools execution.
            mcp_orbit: Grants access to the Orbit Knowledge Graph MCP server for graph queries and schema retrieval.
    apiKey:
      type: apiKey
      name: PRIVATE-TOKEN
      in: header