Use this API to retrieve and download provenance attestations for a project.

The availability of these endpoints is controlled by a feature flag. They are available for testing, but not ready for production use.

List all signing certificates for a project

GET /api/v4/projects/{id}/attestations/signing_certificates

Lists the unexpired certificate authority (CA) certificates of a project. GitLab uses these CAs to issue the certificates that sign attestations with the LOCAL_CA attestation method. This feature was introduced in GitLab 19.6.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
page
Query
IntegerPage number of results to retrieve
Default: 1
Example: 1
per_page
Query
IntegerNumber of items to list per page
Default: 20
Example: 20

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesSupplyChainSigningCertificate
400Bad Request—
403Forbidden—
404Not found—

Retrieve an attestation bundle

GET /api/v4/projects/{id}/attestations/{attestation_iid}/download

This feature was introduced in GitLab 18.7

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
attestation_iid
Path, required
String or integerInternal ID of the attestation, as returned by the list attestations API endpoint

Responses

CodeDescriptionSchema
200OK—
400Bad Request—
404Artifact SHA-256 not found—

List all attestations for a project

GET /api/v4/projects/{id}/attestations/{subject_digest}

Lists all attestations for a specified project and artifact hash. This feature was introduced in GitLab 18.7.

Parameters

NameTypeDescription
id
Path, required
String or integerID or URL-encoded path of the project
subject_digest
Path, required
StringHex-encoded SHA-256 hash of the artifact

Responses

CodeDescriptionSchema
200OKArray of APIEntitiesSupplyChainAttestation
400Bad Request—
404Artifact SHA-256 not found—

Schemas

Objects returned by the operations above and objects nested in their request bodies.

APIEntitiesSupplyChainAttestation

PropertyTypeDescription
build_idInteger (int64)—
created_atString (date-time)Example: 2025-09-17T02:26:10.898Z
download_urlString—
expire_atString (date-time)Example: 2025-09-17T02:26:10.898Z
idInteger (int64)Example: 1
iidIntegerExample: 14
predicate_kindStringExample: provenance
predicate_typeStringExample: https://slsa.dev/provenance/v1
project_idInteger (int64)—
signing_methodStringAllowed values: sigstore, local_ca
Example: local_ca
statusStringExample: success
subject_digestStringExample: 5db1fee4b5703808c48078a76768b155b421b210c0761cd6a5d223f4d99f1eaa
updated_atString (date-time)Example: 2025-09-17T02:26:10.898Z

APIEntitiesSupplyChainSigningCertificate

PropertyTypeDescription
activeBooleanIf true, GitLab uses this CA to issue certificates for new attestations
Example: true
certificateStringPEM-encoded certificate authority (CA) certificate, which contains the CA public key
Example: -----BEGIN CERTIFICATE----- MIIBszCCAVqgAwIBAgIUJ... -----END CERTIFICATE-----
created_atString (date-time)Date and time the certificate was created
Example: 2026-10-22T07:08:25.643Z
expires_atString (date-time)Date and time the certificate expires
Example: 2036-10-22T07:08:25.000Z
idInteger (int64)ID of the signing certificate
Example: 1