GitLab CI/CD attestations API

Operations about attestations

Operations 2

GET /api/v4/projects/{id}/attestations/{subject_digest} Fetch the list of all attestations for a specific project and artifact hash #
GET /api/v4/projects/{id}/attestations/{attestation_iid}/download Fetch a specific bundle by iid #

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-attestations-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-attestations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: GitLab access_requests Attestations API
  version: v4
  description: Operations related to access requests
servers:
- url: https://gitlab.com
tags:
- name: attestations
  description: Operations about attestations
paths:
  /api/v4/projects/{id}/attestations/{subject_digest}:
    get:
      summary: Fetch the list of all attestations for a specific project and artifact hash
      description: This feature was introduced in GitLab 18.7
      parameters:
      - in: path
        name: id
        description: The ID or URL-encoded path of the project
        required: true
        schema:
          type: string
      - in: path
        name: subject_digest
        description: The SHA-256 hash of the artifact
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Fetch the list of all attestations for a specific project and artifact hash
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/API_Entities_SupplyChain_Attestation'
        '404':
          description: Artifact SHA-256 not found
      tags:
      - attestations
      operationId: getApiV4ProjectsIdAttestationsSubjectDigest
  /api/v4/projects/{id}/attestations/{attestation_iid}/download:
    get:
      summary: Fetch a specific bundle by iid
      description: This feature was introduced in GitLab 18.7
      parameters:
      - in: path
        name: id
        description: The ID or URL-encoded path of the project
        required: true
        schema:
          type: string
      - in: path
        name: attestation_iid
        description: The iid of the attestation
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Fetch a specific bundle by iid
        '404':
          description: Artifact SHA-256 not found
      tags:
      - attestations
      operationId: getApiV4ProjectsIdAttestationsAttestationIidDownload
components:
  schemas:
    API_Entities_SupplyChain_Attestation:
      type: object
      properties:
        id:
          type: integer
          format: int32
          example: 1
        iid:
          type: integer
          format: int32
          example: 14
        created_at:
          type: string
          format: date-time
          example: '2025-09-17T02:26:10.898Z'
        updated_at:
          type: string
          format: date-time
          example: '2025-09-17T02:26:10.898Z'
        expire_at:
          type: string
          format: date-time
          example: '2025-09-17T02:26:10.898Z'
        project_id:
          type: integer
          format: int32
        build_id:
          type: integer
          format: int32
        status:
          type: string
          example: success
        predicate_kind:
          type: string
          example: provenance
        predicate_type:
          type: string
          example: https://slsa.dev/provenance/v1
        subject_digest:
          type: string
          example: 5db1fee4b5703808c48078a76768b155b421b210c0761cd6a5d223f4d99f1eaa
        download_url:
          type: string
      required:
      - id
      - iid
      - created_at
      - updated_at
      - expire_at
      - project_id
      - build_id
      - status
      - predicate_kind
      - predicate_type
      - subject_digest
      - download_url
      description: API_Entities_SupplyChain_Attestation model
  securitySchemes:
    access_token_header:
      type: apiKey
      name: PRIVATE-TOKEN
      in: header
    access_token_query:
      type: apiKey
      name: private_token
      in: query