GitLab CI/CD secure_files API

Operations about secure_files

Operations 5

GET /api/v4/projects/{id}/secure_files #
POST /api/v4/projects/{id}/secure_files #
GET /api/v4/projects/{id}/secure_files/{secure_file_id} #
DELETE /api/v4/projects/{id}/secure_files/{secure_file_id} #
GET /api/v4/projects/{id}/secure_files/{secure_file_id}/download #

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-secure-files-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-secure-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab access_requests Secure Files API
  version: v4
  description: Operations related to access requests
servers:
- url: https://gitlab.com
tags:
- name: secure_files
  description: Operations about secure_files
paths:
  /api/v4/projects/{id}/secure_files:
    get:
      description: Get list of secure files in a project
      parameters:
      - in: path
        name: id
        description: "The ID or URL-encoded path of the project owned by the\n        authenticated user"
        required: true
        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 list of secure files in a project
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_Ci_SecureFile'
      tags:
      - secure_files
      operationId: getApiV4ProjectsIdSecureFiles
    post:
      description: Create a secure file
      parameters:
      - in: path
        name: id
        description: "The ID or URL-encoded path of the project owned by the\n        authenticated user"
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Create a secure file
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_Ci_SecureFile'
        '400':
          description: 400 Bad Request
      tags:
      - secure_files
      operationId: postApiV4ProjectsIdSecureFiles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postApiV4ProjectsIdSecureFiles'
        required: true
  /api/v4/projects/{id}/secure_files/{secure_file_id}:
    get:
      description: Get the details of a specific secure file in a project
      parameters:
      - in: path
        name: id
        description: "The ID or URL-encoded path of the project owned by the\n        authenticated user"
        required: true
        schema:
          type: string
      - in: path
        name: secure_file_id
        description: The ID of a secure file
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Get the details of a specific secure file in a project
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_Ci_SecureFile'
        '404':
          description: 404 Not found
      tags:
      - secure_files
      operationId: getApiV4ProjectsIdSecureFilesSecureFileId
    delete:
      description: Remove a secure file
      parameters:
      - in: path
        name: id
        description: "The ID or URL-encoded path of the project owned by the\n        authenticated user"
        required: true
        schema:
          type: string
      - in: path
        name: secure_file_id
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '204':
          description: Remove a secure file
        '404':
          description: 404 Not found
      tags:
      - secure_files
      operationId: deleteApiV4ProjectsIdSecureFilesSecureFileId
  /api/v4/projects/{id}/secure_files/{secure_file_id}/download:
    get:
      description: Download secure file
      parameters:
      - in: path
        name: id
        description: "The ID or URL-encoded path of the project owned by the\n        authenticated user"
        required: true
        schema:
          type: string
      - in: path
        name: secure_file_id
        description: The ID of a secure file
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Download secure file
        '404':
          description: 404 Not found
      tags:
      - secure_files
      operationId: getApiV4ProjectsIdSecureFilesSecureFileIdDownload
components:
  schemas:
    postApiV4ProjectsIdSecureFiles:
      type: object
      properties:
        name:
          type: string
          description: "The name of the file being uploaded. The filename must be unique within\n            the project"
        file:
          type: string
          description: The secure file being uploaded
          format: binary
      required:
      - name
      - file
      description: Create a secure file
    API_Entities_Ci_SecureFile:
      type: object
      properties:
        id:
          type: integer
          format: int32
          example: 123
        name:
          type: string
          example: upload-keystore.jks
        checksum:
          type: string
          example: 16630b189ab34b2e3504f4758e1054d2e478deda510b2b08cc0ef38d12e80aac
        checksum_algorithm:
          type: string
          example: sha256
        created_at:
          type: string
          format: date-time
          example: '2022-02-22T22:22:22.222Z'
        expires_at:
          type: string
          format: date-time
          example: '2023-09-21T14:55:59.000Z'
        metadata:
          type: object
          example:
            id: '75949910542696343243264405377658443914'
        file_extension:
          type: string
          example: jks
      required:
      - id
      - name
      - checksum
      - checksum_algorithm
      - created_at
      - expires_at
      - metadata
      - file_extension
      description: API_Entities_Ci_SecureFile model
  securitySchemes:
    access_token_header:
      type: apiKey
      name: PRIVATE-TOKEN
      in: header
    access_token_query:
      type: apiKey
      name: private_token
      in: query