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
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | ID or URL- |
pageQuery | Integer | Page number of results to retrieve Default: 1Example: 1 |
per_Query | Integer | Number of items to list per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
403 | Forbidden | — |
404 | Not found | — |
Retrieve an attestation bundle
GET /api/v4/projects/{id}/attestations/{attestation_iid}/download
This feature was introduced in GitLab 18.7
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | ID or URL- |
attestation_Path, | String or integer | Internal ID of the attestation, |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
400 | Bad Request | — |
404 | Artifact SHA- | — |
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
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | ID or URL- |
subject_Path, | String | Hex- |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIEntities |
400 | Bad Request | — |
404 | Artifact SHA- | — |
Schemas
Objects returned by the operations above and objects nested in their request bodies.
APIEntitiesSupplyChainAttestation
| Property | Type | Description |
|---|---|---|
build_ | Integer (int64) | — |
created_ | String (date- | Example:2025- |
download_ | String | — |
expire_ | String (date- | Example:2025- |
id | Integer (int64) | Example:1 |
iid | Integer | Example:14 |
predicate_ | String | Example:provenance |
predicate_ | String | Example:https: |
project_ | Integer (int64) | — |
signing_ | String | Allowed values:sigstore,local_Example: local_ |
status | String | Example:success |
subject_ | String | Example:5db1fee4b5703808c480 |
updated_ | String (date- | Example:2025- |
APIEntitiesSupplyChainSigningCertificate
| Property | Type | Description |
|---|---|---|
active | Boolean | If true, Example: true |
certificate | String | PEM- Example: - |
created_ | String (date- | Date and time the certificate was created Example: 2026- |
expires_ | String (date- | Date and time the certificate expires Example: 2036- |
id | Integer (int64) | ID of the signing certificate Example: 1 |